Test to check success of testdata script

master
Mark Moffat 2019-12-16 14:10:15 +10:30
parent 41cb4e24c5
commit cd0b4e992f
1 changed files with 14 additions and 0 deletions

14
test/specs/testdata.js Normal file
View File

@ -0,0 +1,14 @@
import{ serial as test }from'ava';
test('[Success] Run test data', async t => {
const spawnSync = require('child_process').spawnSync;
let exitCode;
try{
exitCode = spawnSync('npm', ['run', 'testdata'], {
shell: true
});
}catch(error){
console.log('Error', error);
}
t.deepEqual(exitCode.status, 0);
});