diff --git a/bsc-plugin/package-lock.json b/bsc-plugin/package-lock.json index bddb215c..0e6090df 100644 --- a/bsc-plugin/package-lock.json +++ b/bsc-plugin/package-lock.json @@ -7,7 +7,6 @@ "": { "name": "rooibos-roku", "version": "5.15.0", - "hasInstallScript": true, "license": "ISC", "dependencies": { "roku-debug": "^0.21.10", diff --git a/bsc-plugin/package.json b/bsc-plugin/package.json index b518806e..fbdf93d0 100644 --- a/bsc-plugin/package.json +++ b/bsc-plugin/package.json @@ -16,10 +16,7 @@ "publish-npm:beta": "npm run test && npm publish --tag=beta", "local": "ts-node scripts/install-local.js", "remote": "ts-node scripts/install-npm.js", - "cli": "ts-node src/cli.ts", - "prepack": "node scripts/pack.js --pre", - "postpack": "node scripts/pack.js --post", - "postinstall": "ropm copy" + "cli": "ts-node src/cli.ts" }, "repository": { "type": "git", diff --git a/bsc-plugin/scripts/pack.js b/bsc-plugin/scripts/pack.js deleted file mode 100644 index ade1383d..00000000 --- a/bsc-plugin/scripts/pack.js +++ /dev/null @@ -1,20 +0,0 @@ -var fsExtra = require('fs-extra'); -var path = require('path'); - -var cachePath = path.join(__dirname, 'pack-cache.txt'); -var packageJsonPath = path.join(__dirname, '../package.json'); - -var packageJson = fsExtra.readJsonSync(packageJsonPath); - -//store the script and remove it from package.json -if (process.argv.includes('--pre')) { - fsExtra.outputFileSync(cachePath, packageJson.scripts.postinstall); - delete packageJson.scripts.postinstall; - - //restore the script -} else if (process.argv.includes('--post')) { - packageJson.scripts.postinstall = fsExtra.readFileSync(cachePath, packageJson.scripts.postinstall).toString(); - fsExtra.removeSync(cachePath); -} - -fsExtra.outputJsonSync(packageJsonPath, packageJson, { spaces: 4 }); diff --git a/framework/src/source/rooibos/Test.bs b/framework/src/source/rooibos/Test.bs index 47137cf3..f3e9979a 100644 --- a/framework/src/source/rooibos/Test.bs +++ b/framework/src/source/rooibos/Test.bs @@ -83,7 +83,7 @@ namespace rooibos m.recordExecutionTime() end if - return m.differed + return m.deferred end function ' Sets up a promise chain to link the deferred to the test promise results diff --git a/tests/src/source/Promises.spec.bs b/tests/src/source/Promises.spec.bs index 402d6e1d..074dccd5 100644 --- a/tests/src/source/Promises.spec.bs +++ b/tests/src/source/Promises.spec.bs @@ -1,10 +1,11 @@ namespace tests @suite + @only() @async class PromisesTests extends rooibos.BaseTestSuite '+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - @describe("tests that should as fail") + @describe("tests that should fail") '+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ @it("fail the test as the returned to the test promise that will reject") @@ -46,7 +47,7 @@ namespace tests end function '+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - @describe("tests that should as fail as crashes") + @describe("tests that should fail as crashes") '+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ @async(100) @@ -81,4 +82,4 @@ function toPromiseWithDelay(duration = 0.0001 as float, value = true as dynamic, end if end sub, { deferred: deferred, value: value, resolve: resolve }, duration) return deferred -end function \ No newline at end of file +end function