MCPcopy Create free account
hub / github.com/FSGModding/FSG_Mod_Assistant / testBad

Function testBad

test/tests/csvcheck.js:13–27  ·  view source on GitHub ↗
(test)

Source from the content-addressed store, hash-verified

11}
12
13const testBad = (test) => {
14 const fullPath = path.join(__dirname, 'savegame', 'testcollectbad.csv')
15
16 return new csvFileChecker(fullPath, false).getInfo().then((results) => {
17 if ( results.mapMod === null ) {
18 test.step('Expected empty result set received')
19 } else {
20 test.error('Got a non-empty result set')
21 }
22 }).catch((err) => {
23 test.error(`Unexpected Error :: ${err}`)
24 }).finally(() => {
25 test.end()
26 })
27}
28
29const testGood = (test) => {
30 const fullPath = path.join(__dirname, 'savegame', 'testcollect.csv')

Callers 1

csvcheck.jsFile · 0.85

Calls 4

stepMethod · 0.80
endMethod · 0.80
getInfoMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected