diff --git a/bower.json b/bower.json index de55508..6578d3d 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "aurelia-testing", - "version": "1.0.0-beta.4.0.0", + "version": "1.0.0-beta.5.0.0", "description": "A collection of helpers for testing Aurelia apps and components.", "keywords": [ "aurelia", diff --git a/dist/amd/wait.js b/dist/amd/wait.js index 0e101a1..1c8f1d2 100644 --- a/dist/amd/wait.js +++ b/dist/amd/wait.js @@ -35,7 +35,7 @@ define(["require", "exports"], function (require, exports) { return Promise.race([ new Promise(function (_, rj) { return setTimeout(function () { timedOut = true; - rj(options.present ? 'Element not found' : 'Element not removed'); + rj(new Error(options.present ? 'Element not found' : 'Element not removed')); }, options.timeout); }), wait() ]); diff --git a/dist/commonjs/wait.js b/dist/commonjs/wait.js index a187de5..68616d8 100644 --- a/dist/commonjs/wait.js +++ b/dist/commonjs/wait.js @@ -34,7 +34,7 @@ function waitFor(getter, options) { return Promise.race([ new Promise(function (_, rj) { return setTimeout(function () { timedOut = true; - rj(options.present ? 'Element not found' : 'Element not removed'); + rj(new Error(options.present ? 'Element not found' : 'Element not removed')); }, options.timeout); }), wait() ]); diff --git a/dist/es2015/wait.js b/dist/es2015/wait.js index 5835398..8f807f1 100644 --- a/dist/es2015/wait.js +++ b/dist/es2015/wait.js @@ -23,7 +23,7 @@ export function waitFor(getter, options = { present: true, interval: 50, timeout return Promise.race([ new Promise((_, rj) => setTimeout(() => { timedOut = true; - rj(options.present ? 'Element not found' : 'Element not removed'); + rj(new Error(options.present ? 'Element not found' : 'Element not removed')); }, options.timeout)), wait() ]); diff --git a/dist/es2017/wait.js b/dist/es2017/wait.js index 5835398..8f807f1 100644 --- a/dist/es2017/wait.js +++ b/dist/es2017/wait.js @@ -23,7 +23,7 @@ export function waitFor(getter, options = { present: true, interval: 50, timeout return Promise.race([ new Promise((_, rj) => setTimeout(() => { timedOut = true; - rj(options.present ? 'Element not found' : 'Element not removed'); + rj(new Error(options.present ? 'Element not found' : 'Element not removed')); }, options.timeout)), wait() ]); diff --git a/dist/native-modules/wait.js b/dist/native-modules/wait.js index c5d2b03..5d81447 100644 --- a/dist/native-modules/wait.js +++ b/dist/native-modules/wait.js @@ -32,7 +32,7 @@ export function waitFor(getter, options) { return Promise.race([ new Promise(function (_, rj) { return setTimeout(function () { timedOut = true; - rj(options.present ? 'Element not found' : 'Element not removed'); + rj(new Error(options.present ? 'Element not found' : 'Element not removed')); }, options.timeout); }), wait() ]); diff --git a/dist/system/wait.js b/dist/system/wait.js index 5ecd0b5..85fa35c 100644 --- a/dist/system/wait.js +++ b/dist/system/wait.js @@ -35,7 +35,7 @@ System.register([], function (exports_1, context_1) { return Promise.race([ new Promise(function (_, rj) { return setTimeout(function () { timedOut = true; - rj(options.present ? 'Element not found' : 'Element not removed'); + rj(new Error(options.present ? 'Element not found' : 'Element not removed')); }, options.timeout); }), wait() ]); diff --git a/doc/CHANGELOG.md b/doc/CHANGELOG.md index 18365fa..7f882b4 100644 --- a/doc/CHANGELOG.md +++ b/doc/CHANGELOG.md @@ -1,3 +1,14 @@ + +# [1.0.0-beta.5.0.0](https://github.com/aurelia/testing/compare/1.0.0-beta.4.0.0...1.0.0-beta.5.0.0) (2018-09-25) + + +### Bug Fixes + +* **code example:** fix to the manually handling lifecycle example ([#82](https://github.com/aurelia/testing/issues/82)) ([b0fb939](https://github.com/aurelia/testing/commit/b0fb939)) +* **waitFor:** reject with Error rather than string ([#84](https://github.com/aurelia/testing/issues/84)) ([054dab5](https://github.com/aurelia/testing/commit/054dab5)) + + + # [1.0.0-beta.4.0.0](https://github.com/aurelia/testing/compare/1.0.0-beta.3.0.1...1.0.0-beta.4.0.0) (2017-11-06) diff --git a/package.json b/package.json index 696631c..da1b3f5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aurelia-testing", - "version": "1.0.0-beta.4.0.0", + "version": "1.0.0-beta.5.0.0", "description": "A collection of helpers for testing Aurelia apps and components.", "keywords": [ "aurelia",