From cd0b4e992fecd230e66a368d9590a7a102824fb5 Mon Sep 17 00:00:00 2001 From: Mark Moffat Date: Mon, 16 Dec 2019 14:10:15 +1030 Subject: [PATCH] Test to check success of testdata script --- test/specs/testdata.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/specs/testdata.js diff --git a/test/specs/testdata.js b/test/specs/testdata.js new file mode 100644 index 0000000..60d1c5d --- /dev/null +++ b/test/specs/testdata.js @@ -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); +});