mirror of
https://github.com/CJackHwang/ds2api.git
synced 2026-05-05 00:45:29 +08:00
21 lines
529 B
Go
21 lines
529 B
Go
package testsuite
|
|
|
|
import (
|
|
"reflect"
|
|
"testing"
|
|
)
|
|
|
|
func TestPreflightStepsExactSequence(t *testing.T) {
|
|
want := [][]string{
|
|
{"go", "test", "./...", "-count=1"},
|
|
{"./tests/scripts/check-node-split-syntax.sh"},
|
|
{"node", "--test", "tests/node/stream-tool-sieve.test.js", "tests/node/chat-stream.test.js", "tests/node/js_compat_test.js"},
|
|
{"npm", "run", "build", "--prefix", "webui"},
|
|
}
|
|
|
|
got := preflightSteps()
|
|
if !reflect.DeepEqual(got, want) {
|
|
t.Fatalf("preflight steps mismatch\nwant=%v\ngot=%v", want, got)
|
|
}
|
|
}
|