mirror of
https://github.com/danielmiessler/fabric
synced 2024-11-08 07:11:06 +00:00
17 lines
287 B
Go
17 lines
287 B
Go
package core
|
|
|
|
import (
|
|
"github.com/danielmiessler/fabric/plugins/db/fsdb"
|
|
"os"
|
|
"testing"
|
|
)
|
|
|
|
func TestSaveEnvFile(t *testing.T) {
|
|
registry := NewPluginRegistry(fsdb.NewDb(os.TempDir()))
|
|
|
|
err := registry.SaveEnvFile()
|
|
if err != nil {
|
|
t.Fatalf("SaveEnvFile() error = %v", err)
|
|
}
|
|
}
|