mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-04 14:10:23 +09:00
refactor(runtime): simplify AssetDir() (#2761)
* refactor(runtime): simplify AssetDir() * test(runtime): remove cwd checks
This commit is contained in:
16
runtime/runtime_test.go
Normal file
16
runtime/runtime_test.go
Normal file
@@ -0,0 +1,16 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user