mirror of
https://github.com/zyedidia/micro.git
synced 2024-11-09 16:45:48 +03:00
b16af564a7
* refactor(runtime): simplify AssetDir() * test(runtime): remove cwd checks
17 lines
280 B
Go
17 lines
280 B
Go
package config
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestAssetDir(t *testing.T) {
|
|
t.Parallel()
|
|
// Test AssetDir
|
|
entries, err := AssetDir("syntax")
|
|
assert.NoError(t, err)
|
|
assert.Contains(t, entries, "go.yaml")
|
|
assert.True(t, len(entries) > 5)
|
|
}
|