From b04ac87edc6d5ad0d6ad7bbd5e2090a69dcccfce Mon Sep 17 00:00:00 2001 From: Rob Eisenberg Date: Fri, 24 Mar 2017 23:20:33 -0700 Subject: [PATCH] chore(all): prepare release 1.0.0-beta.3.0.1 --- bower.json | 2 +- dist/amd/component-tester.js | 6 +- dist/aurelia-testing.d.ts | 50 ++++---- dist/aurelia-testing.js | 164 ++++++++++++------------ dist/commonjs/component-tester.js | 6 +- dist/es2015/component-tester.js | 1 + dist/native-modules/component-tester.js | 1 + dist/system/component-tester.js | 6 +- dist/temp/aurelia-testing.js | 98 +++++++------- doc/CHANGELOG.md | 11 ++ doc/api.json | 2 +- package.json | 2 +- 12 files changed, 183 insertions(+), 166 deletions(-) diff --git a/bower.json b/bower.json index 5eb6f27..0e942bc 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "aurelia-testing", - "version": "1.0.0-beta.3.0.0", + "version": "1.0.0-beta.3.0.1", "description": "A collection of helpers for testing Aurelia apps and components.", "keywords": [ "aurelia", diff --git a/dist/amd/component-tester.js b/dist/amd/component-tester.js index ad5cea8..15441ad 100644 --- a/dist/amd/component-tester.js +++ b/dist/amd/component-tester.js @@ -1,4 +1,4 @@ -define(['exports', 'aurelia-templating', 'aurelia-framework'], function (exports, _aureliaTemplating, _aureliaFramework) { +define(['exports', 'aurelia-templating', 'aurelia-framework', './wait'], function (exports, _aureliaTemplating, _aureliaFramework, _wait) { 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -152,7 +152,7 @@ define(['exports', 'aurelia-templating', 'aurelia-framework'], function (exports ComponentTester.prototype.waitForElement = function waitForElement(selector, options) { var _this3 = this; - return waitFor(function () { + return (0, _wait.waitFor)(function () { return _this3.element.querySelector(selector); }, options); }; @@ -160,7 +160,7 @@ define(['exports', 'aurelia-templating', 'aurelia-framework'], function (exports ComponentTester.prototype.waitForElements = function waitForElements(selector, options) { var _this4 = this; - return waitFor(function () { + return (0, _wait.waitFor)(function () { return _this4.element.querySelectorAll(selector); }, options); }; diff --git a/dist/aurelia-testing.d.ts b/dist/aurelia-testing.d.ts index 6c8859d..6c39b44 100644 --- a/dist/aurelia-testing.d.ts +++ b/dist/aurelia-testing.d.ts @@ -1,18 +1,18 @@ import * as LogManager from 'aurelia-logging'; import { - View, customAttribute, - TargetInstruction + TargetInstruction, + View } from 'aurelia-templating'; -import { - Aurelia -} from 'aurelia-framework'; import { inject } from 'aurelia-dependency-injection'; import { DOM } from 'aurelia-pal'; +import { + Aurelia +} from 'aurelia-framework'; /** * Generic function to wait for something to happen. Uses polling @@ -25,26 +25,6 @@ import { export declare function waitFor(getter: (() => any), options: any): Promise; export declare function waitForDocumentElement(selector: string, options: any): Promise; export declare function waitForDocumentElements(selector: string, options: any): Promise; -export declare class StageComponent { - static withResources(resources: string | string[]): ComponentTester; -} -export declare class ComponentTester { - bind: ((bindingContext: any) => void); - attached: (() => void); - unbind: (() => void); - element: Element; - viewModel: any; - configure: any; - bootstrap(configure: ((aurelia: Aurelia) => void)): any; - withResources(resources: string | string[]): ComponentTester; - inView(html: string): ComponentTester; - boundTo(bindingContext: any): ComponentTester; - manuallyHandleLifecycle(): ComponentTester; - create(bootstrap: ((configure: ((aurelia: Aurelia) => Promise)) => Promise)): Promise; - dispose(): any; - waitForElement(selector: string, options: any): Promise; - waitForElements(selector: string, options: any): Promise; -} /** * Attribute to be placed on any HTML element in a view to emit the View instance @@ -99,4 +79,24 @@ export declare class CompileSpy { * @param instruction instructions for how the target element should be enhanced. */ constructor(element?: any, instruction?: any); +} +export declare class StageComponent { + static withResources(resources?: string | string[]): ComponentTester; +} +export declare class ComponentTester { + bind: ((bindingContext: any) => void); + attached: (() => void); + unbind: (() => void); + element: Element; + viewModel: any; + configure: any; + bootstrap(configure: ((aurelia: Aurelia) => void)): any; + withResources(resources: string | string[]): ComponentTester; + inView(html: string): ComponentTester; + boundTo(bindingContext: any): ComponentTester; + manuallyHandleLifecycle(): ComponentTester; + create(bootstrap: ((configure: ((aurelia: Aurelia) => Promise)) => Promise)): Promise; + dispose(): any; + waitForElement(selector: string, options: any): Promise; + waitForElements(selector: string, options: any): Promise; } \ No newline at end of file diff --git a/dist/aurelia-testing.js b/dist/aurelia-testing.js index 35c5095..74e47a7 100644 --- a/dist/aurelia-testing.js +++ b/dist/aurelia-testing.js @@ -1,8 +1,8 @@ import * as LogManager from 'aurelia-logging'; -import {View,customAttribute,TargetInstruction} from 'aurelia-templating'; -import {Aurelia} from 'aurelia-framework'; +import {customAttribute,TargetInstruction,View} from 'aurelia-templating'; import {inject} from 'aurelia-dependency-injection'; import {DOM} from 'aurelia-pal'; +import {Aurelia} from 'aurelia-framework'; /** * Generic function to wait for something to happen. Uses polling @@ -55,8 +55,87 @@ export function waitForDocumentElements(selector: string, options: any): Promise return waitFor(() => document.querySelectorAll(selector), options); } +/** +* Attribute to be placed on any HTML element in a view to emit the View instance +* to the debug console, giving you insight into the live View instance, including +* all child views, live bindings, behaviors and more. +*/ +@customAttribute('view-spy') +export class ViewSpy { + /** + * Creates a new instance of ViewSpy. + */ + constructor() { + this.logger = LogManager.getLogger('view-spy'); + } + + _log(lifecycleName, context) { + if (!this.value && lifecycleName === 'created' ) { + this.logger.info(lifecycleName, this.view); + } else if (this.value && this.value.indexOf(lifecycleName) !== -1) { + this.logger.info(lifecycleName, this.view, context); + } + } + + /** + * Invoked when the target view is created. + * @param view The target view. + */ + created(view) { + this.view = view; + this._log('created'); + } + + /** + * Invoked when the target view is bound. + * @param bindingContext The target view's binding context. + */ + bind(bindingContext) { + this._log('bind', bindingContext); + } + + /** + * Invoked when the target element is attached to the DOM. + */ + attached() { + this._log('attached'); + } + + /** + * Invoked when the target element is detached from the DOM. + */ + detached() { + this._log('detached'); + } + + /** + * Invoked when the target element is unbound. + */ + unbind() { + this._log('unbind'); + } +} + +/** +* Attribute to be placed on any element to have it emit the View Compiler's +* TargetInstruction into the debug console, giving you insight into all the +* parsed bindings, behaviors and event handers for the targeted element. +*/ +@customAttribute('compile-spy') +@inject(DOM.Element, TargetInstruction) +export class CompileSpy { + /** + * Creates and instanse of CompileSpy. + * @param element target element on where attribute is placed on. + * @param instruction instructions for how the target element should be enhanced. + */ + constructor(element, instruction) { + LogManager.getLogger('compile-spy').info(element, instruction); + } +} + export class StageComponent { - static withResources(resources: string | string[]): ComponentTester { + static withResources(resources?: string | string[]): ComponentTester { return new ComponentTester().withResources(resources); } } @@ -181,82 +260,3 @@ export class ComponentTester { return waitFor(() => this.element.querySelectorAll(selector), options); } } - -/** -* Attribute to be placed on any HTML element in a view to emit the View instance -* to the debug console, giving you insight into the live View instance, including -* all child views, live bindings, behaviors and more. -*/ -@customAttribute('view-spy') -export class ViewSpy { - /** - * Creates a new instance of ViewSpy. - */ - constructor() { - this.logger = LogManager.getLogger('view-spy'); - } - - _log(lifecycleName, context) { - if (!this.value && lifecycleName === 'created' ) { - this.logger.info(lifecycleName, this.view); - } else if (this.value && this.value.indexOf(lifecycleName) !== -1) { - this.logger.info(lifecycleName, this.view, context); - } - } - - /** - * Invoked when the target view is created. - * @param view The target view. - */ - created(view) { - this.view = view; - this._log('created'); - } - - /** - * Invoked when the target view is bound. - * @param bindingContext The target view's binding context. - */ - bind(bindingContext) { - this._log('bind', bindingContext); - } - - /** - * Invoked when the target element is attached to the DOM. - */ - attached() { - this._log('attached'); - } - - /** - * Invoked when the target element is detached from the DOM. - */ - detached() { - this._log('detached'); - } - - /** - * Invoked when the target element is unbound. - */ - unbind() { - this._log('unbind'); - } -} - -/** -* Attribute to be placed on any element to have it emit the View Compiler's -* TargetInstruction into the debug console, giving you insight into all the -* parsed bindings, behaviors and event handers for the targeted element. -*/ -@customAttribute('compile-spy') -@inject(DOM.Element, TargetInstruction) -export class CompileSpy { - /** - * Creates and instanse of CompileSpy. - * @param element target element on where attribute is placed on. - * @param instruction instructions for how the target element should be enhanced. - */ - constructor(element, instruction) { - LogManager.getLogger('compile-spy').info(element, instruction); - } -} diff --git a/dist/commonjs/component-tester.js b/dist/commonjs/component-tester.js index a88f95b..58ad2fd 100644 --- a/dist/commonjs/component-tester.js +++ b/dist/commonjs/component-tester.js @@ -9,6 +9,8 @@ var _aureliaTemplating = require('aurelia-templating'); var _aureliaFramework = require('aurelia-framework'); +var _wait = require('./wait'); + var StageComponent = exports.StageComponent = function () { @@ -155,7 +157,7 @@ var ComponentTester = exports.ComponentTester = function () { ComponentTester.prototype.waitForElement = function waitForElement(selector, options) { var _this3 = this; - return waitFor(function () { + return (0, _wait.waitFor)(function () { return _this3.element.querySelector(selector); }, options); }; @@ -163,7 +165,7 @@ var ComponentTester = exports.ComponentTester = function () { ComponentTester.prototype.waitForElements = function waitForElements(selector, options) { var _this4 = this; - return waitFor(function () { + return (0, _wait.waitFor)(function () { return _this4.element.querySelectorAll(selector); }, options); }; diff --git a/dist/es2015/component-tester.js b/dist/es2015/component-tester.js index acbab0f..c3e39d0 100644 --- a/dist/es2015/component-tester.js +++ b/dist/es2015/component-tester.js @@ -1,5 +1,6 @@ import { View } from 'aurelia-templating'; import { Aurelia } from 'aurelia-framework'; +import { waitFor } from './wait'; export let StageComponent = class StageComponent { static withResources(resources) { diff --git a/dist/native-modules/component-tester.js b/dist/native-modules/component-tester.js index 17ebfe4..639e6c5 100644 --- a/dist/native-modules/component-tester.js +++ b/dist/native-modules/component-tester.js @@ -2,6 +2,7 @@ import { View } from 'aurelia-templating'; import { Aurelia } from 'aurelia-framework'; +import { waitFor } from './wait'; export var StageComponent = function () { function StageComponent() { diff --git a/dist/system/component-tester.js b/dist/system/component-tester.js index 89f0242..5f320ca 100644 --- a/dist/system/component-tester.js +++ b/dist/system/component-tester.js @@ -1,9 +1,9 @@ 'use strict'; -System.register(['aurelia-templating', 'aurelia-framework'], function (_export, _context) { +System.register(['aurelia-templating', 'aurelia-framework', './wait'], function (_export, _context) { "use strict"; - var View, Aurelia, StageComponent, ComponentTester; + var View, Aurelia, waitFor, StageComponent, ComponentTester; @@ -12,6 +12,8 @@ System.register(['aurelia-templating', 'aurelia-framework'], function (_export, View = _aureliaTemplating.View; }, function (_aureliaFramework) { Aurelia = _aureliaFramework.Aurelia; + }, function (_wait) { + waitFor = _wait.waitFor; }], execute: function () { _export('StageComponent', StageComponent = function () { diff --git a/dist/temp/aurelia-testing.js b/dist/temp/aurelia-testing.js index 4556480..a4874de 100644 --- a/dist/temp/aurelia-testing.js +++ b/dist/temp/aurelia-testing.js @@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true }); -exports.CompileSpy = exports.ViewSpy = exports.ComponentTester = exports.StageComponent = undefined; +exports.ComponentTester = exports.StageComponent = exports.CompileSpy = exports.ViewSpy = undefined; -var _dec, _class2, _dec2, _dec3, _class3; +var _dec, _class, _dec2, _dec3, _class2; exports.waitFor = waitFor; exports.waitForDocumentElement = waitForDocumentElement; @@ -17,12 +17,12 @@ var LogManager = _interopRequireWildcard(_aureliaLogging); var _aureliaTemplating = require('aurelia-templating'); -var _aureliaFramework = require('aurelia-framework'); - var _aureliaDependencyInjection = require('aurelia-dependency-injection'); var _aureliaPal = require('aurelia-pal'); +var _aureliaFramework = require('aurelia-framework'); + function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } @@ -70,6 +70,50 @@ function waitForDocumentElements(selector, options) { }, options); } +var ViewSpy = exports.ViewSpy = (_dec = (0, _aureliaTemplating.customAttribute)('view-spy'), _dec(_class = function () { + function ViewSpy() { + _classCallCheck(this, ViewSpy); + + this.logger = LogManager.getLogger('view-spy'); + } + + ViewSpy.prototype._log = function _log(lifecycleName, context) { + if (!this.value && lifecycleName === 'created') { + this.logger.info(lifecycleName, this.view); + } else if (this.value && this.value.indexOf(lifecycleName) !== -1) { + this.logger.info(lifecycleName, this.view, context); + } + }; + + ViewSpy.prototype.created = function created(view) { + this.view = view; + this._log('created'); + }; + + ViewSpy.prototype.bind = function bind(bindingContext) { + this._log('bind', bindingContext); + }; + + ViewSpy.prototype.attached = function attached() { + this._log('attached'); + }; + + ViewSpy.prototype.detached = function detached() { + this._log('detached'); + }; + + ViewSpy.prototype.unbind = function unbind() { + this._log('unbind'); + }; + + return ViewSpy; +}()) || _class); +var CompileSpy = exports.CompileSpy = (_dec2 = (0, _aureliaTemplating.customAttribute)('compile-spy'), _dec3 = (0, _aureliaDependencyInjection.inject)(_aureliaPal.DOM.Element, _aureliaTemplating.TargetInstruction), _dec2(_class2 = _dec3(_class2 = function CompileSpy(element, instruction) { + _classCallCheck(this, CompileSpy); + + LogManager.getLogger('compile-spy').info(element, instruction); +}) || _class2) || _class2); + var StageComponent = exports.StageComponent = function () { function StageComponent() { _classCallCheck(this, StageComponent); @@ -228,48 +272,4 @@ var ComponentTester = exports.ComponentTester = function () { }; return ComponentTester; -}(); - -var ViewSpy = exports.ViewSpy = (_dec = (0, _aureliaTemplating.customAttribute)('view-spy'), _dec(_class2 = function () { - function ViewSpy() { - _classCallCheck(this, ViewSpy); - - this.logger = LogManager.getLogger('view-spy'); - } - - ViewSpy.prototype._log = function _log(lifecycleName, context) { - if (!this.value && lifecycleName === 'created') { - this.logger.info(lifecycleName, this.view); - } else if (this.value && this.value.indexOf(lifecycleName) !== -1) { - this.logger.info(lifecycleName, this.view, context); - } - }; - - ViewSpy.prototype.created = function created(view) { - this.view = view; - this._log('created'); - }; - - ViewSpy.prototype.bind = function bind(bindingContext) { - this._log('bind', bindingContext); - }; - - ViewSpy.prototype.attached = function attached() { - this._log('attached'); - }; - - ViewSpy.prototype.detached = function detached() { - this._log('detached'); - }; - - ViewSpy.prototype.unbind = function unbind() { - this._log('unbind'); - }; - - return ViewSpy; -}()) || _class2); -var CompileSpy = exports.CompileSpy = (_dec2 = (0, _aureliaTemplating.customAttribute)('compile-spy'), _dec3 = (0, _aureliaDependencyInjection.inject)(_aureliaPal.DOM.Element, _aureliaTemplating.TargetInstruction), _dec2(_class3 = _dec3(_class3 = function CompileSpy(element, instruction) { - _classCallCheck(this, CompileSpy); - - LogManager.getLogger('compile-spy').info(element, instruction); -}) || _class3) || _class3); \ No newline at end of file +}(); \ No newline at end of file diff --git a/doc/CHANGELOG.md b/doc/CHANGELOG.md index 0e4f7b0..ed2bb1d 100644 --- a/doc/CHANGELOG.md +++ b/doc/CHANGELOG.md @@ -1,3 +1,14 @@ + +# [1.0.0-beta.3.0.1](https://github.com/aurelia/testing/compare/1.0.0-beta.3.0.0...v1.0.0-beta.3.0.1) (2017-03-25) + + +### Bug Fixes + +* **ComponentTester:** import missing waitFor function ([#60](https://github.com/aurelia/testing/issues/60)) ([1ecfbfe](https://github.com/aurelia/testing/commit/1ecfbfe)) +* **ComponentTester:** withResources args are optional ([2154b8f](https://github.com/aurelia/testing/commit/2154b8f)) + + + # [1.0.0-beta.3.0.0](https://github.com/aurelia/testing/compare/1.0.0-beta.2.0.1...v1.0.0-beta.3.0.0) (2017-03-03) diff --git a/doc/api.json b/doc/api.json index 47c8bdf..589bfa5 100644 --- a/doc/api.json +++ b/doc/api.json @@ -1 +1 @@ -{"name":"aurelia-testing","children":[{"id":71,"name":"CompileSpy","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Attribute to be placed on any element to have it emit the View Compiler's\nTargetInstruction into the debug console, giving you insight into all the\nparsed bindings, behaviors and event handers for the targeted element."},"children":[{"id":72,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"comment":{"shortText":"Creates and instanse of CompileSpy."},"signatures":[{"id":73,"name":"new CompileSpy","kind":16384,"kindString":"Constructor signature","flags":{},"comment":{"shortText":"Creates and instanse of CompileSpy."},"parameters":[{"id":74,"name":"element","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"target element on where attribute is placed on."},"type":{"type":"instrinct","name":"any"}},{"id":75,"name":"instruction","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"instructions for how the target element should be enhanced.\n"},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"reference","name":"CompileSpy","id":71}}]}],"groups":[{"title":"Constructors","kind":512,"children":[72]}]},{"id":6,"name":"ComponentTester","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":11,"name":"attached","kind":1024,"kindString":"Property","flags":{"isExported":true},"type":{"type":"reflection","declaration":{"id":12,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":13,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"instrinct","name":"void"}}]}}},{"id":7,"name":"bind","kind":1024,"kindString":"Property","flags":{"isExported":true},"type":{"type":"reflection","declaration":{"id":8,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":9,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":10,"name":"bindingContext","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"void"}}]}}},{"id":19,"name":"configure","kind":1024,"kindString":"Property","flags":{"isExported":true},"type":{"type":"instrinct","name":"any"}},{"id":17,"name":"element","kind":1024,"kindString":"Property","flags":{"isExported":true},"type":{"type":"reference","name":"Element"}},{"id":14,"name":"unbind","kind":1024,"kindString":"Property","flags":{"isExported":true},"type":{"type":"reflection","declaration":{"id":15,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":16,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"instrinct","name":"void"}}]}}},{"id":18,"name":"viewModel","kind":1024,"kindString":"Property","flags":{"isExported":true},"type":{"type":"instrinct","name":"any"}},{"id":20,"name":"bootstrap","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":21,"name":"bootstrap","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":22,"name":"configure","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reflection","declaration":{"id":23,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":24,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":25,"name":"aurelia","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"Aurelia"}}],"type":{"type":"instrinct","name":"void"}}]}}}],"type":{"type":"instrinct","name":"any"}}]},{"id":32,"name":"boundTo","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":33,"name":"boundTo","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":34,"name":"bindingContext","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"reference","name":"ComponentTester","id":6}}]},{"id":37,"name":"create","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":38,"name":"create","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":39,"name":"bootstrap","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reflection","declaration":{"id":40,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":41,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":42,"name":"configure","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reflection","declaration":{"id":43,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":44,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":45,"name":"aurelia","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"Aurelia"}}],"type":{"type":"reference","name":"Promise","typeArguments":[{"type":"instrinct","name":"void"}]}}]}}}],"type":{"type":"reference","name":"Promise","typeArguments":[{"type":"instrinct","name":"void"}]}}]}}}],"type":{"type":"reference","name":"Promise","typeArguments":[{"type":"instrinct","name":"void"}]}}]},{"id":46,"name":"dispose","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":47,"name":"dispose","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"instrinct","name":"any"}}]},{"id":29,"name":"inView","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":30,"name":"inView","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":31,"name":"html","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"string"}}],"type":{"type":"reference","name":"ComponentTester","id":6}}]},{"id":35,"name":"manuallyHandleLifecycle","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":36,"name":"manuallyHandleLifecycle","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"reference","name":"ComponentTester","id":6}}]},{"id":48,"name":"waitForElement","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":49,"name":"waitForElement","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":50,"name":"selector","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"string"}},{"id":51,"name":"options","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"reference","name":"Promise","typeArguments":[{"type":"reference","name":"Element"}]}}]},{"id":52,"name":"waitForElements","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":53,"name":"waitForElements","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":54,"name":"selector","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"string"}},{"id":55,"name":"options","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"reference","name":"Promise","typeArguments":[{"type":"reference","name":"Element"}]}}]},{"id":26,"name":"withResources","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":27,"name":"withResources","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":28,"name":"resources","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"union","types":[{"type":"instrinct","name":"string"},{"type":"instrinct","isArray":true,"name":"string"}]}}],"type":{"type":"reference","name":"ComponentTester","id":6}}]}],"groups":[{"title":"Properties","kind":1024,"children":[11,7,19,17,14,18]},{"title":"Methods","kind":2048,"children":[20,32,37,46,29,35,48,52,26]}]},{"id":2,"name":"StageComponent","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":3,"name":"withResources","kind":2048,"kindString":"Method","flags":{"isStatic":true,"isExported":true},"signatures":[{"id":4,"name":"withResources","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":5,"name":"resources","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"union","types":[{"type":"instrinct","name":"string"},{"type":"instrinct","isArray":true,"name":"string"}]}}],"type":{"type":"reference","name":"ComponentTester","id":6}}]}],"groups":[{"title":"Methods","kind":2048,"children":[3]}]},{"id":56,"name":"ViewSpy","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Attribute to be placed on any HTML element in a view to emit the View instance\nto the debug console, giving you insight into the live View instance, including\nall child views, live bindings, behaviors and more."},"children":[{"id":57,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"comment":{"shortText":"Creates a new instance of ViewSpy."},"signatures":[{"id":58,"name":"new ViewSpy","kind":16384,"kindString":"Constructor signature","flags":{},"comment":{"shortText":"Creates a new instance of ViewSpy."},"type":{"type":"reference","name":"ViewSpy","id":56}}]},{"id":65,"name":"attached","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":66,"name":"attached","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked when the target element is attached to the DOM."},"type":{"type":"instrinct","name":"any"}}]},{"id":62,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":63,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked when the target view is bound."},"parameters":[{"id":64,"name":"bindingContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The target view's binding context.\n"},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"any"}}]},{"id":59,"name":"created","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":60,"name":"created","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked when the target view is created."},"parameters":[{"id":61,"name":"view","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The target view.\n"},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"any"}}]},{"id":67,"name":"detached","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":68,"name":"detached","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked when the target element is detached from the DOM."},"type":{"type":"instrinct","name":"any"}}]},{"id":69,"name":"unbind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":70,"name":"unbind","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked when the target element is unbound."},"type":{"type":"instrinct","name":"any"}}]}],"groups":[{"title":"Constructors","kind":512,"children":[57]},{"title":"Methods","kind":2048,"children":[65,62,59,67,69]}]},{"id":76,"name":"waitFor","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":77,"name":"waitFor","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Generic function to wait for something to happen. Uses polling"},"parameters":[{"id":78,"name":"getter","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reflection","declaration":{"id":79,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":80,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"instrinct","name":"any"}}]}}},{"id":81,"name":"options","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"reference","name":"Promise","typeArguments":[{"type":"instrinct","name":"any"}]}}]},{"id":82,"name":"waitForDocumentElement","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":83,"name":"waitForDocumentElement","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":84,"name":"selector","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"string"}},{"id":85,"name":"options","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"reference","name":"Promise","typeArguments":[{"type":"reference","name":"Element"}]}}]},{"id":86,"name":"waitForDocumentElements","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":87,"name":"waitForDocumentElements","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":88,"name":"selector","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"string"}},{"id":89,"name":"options","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"reference","name":"Promise","typeArguments":[{"type":"reference","name":"Element"}]}}]}],"groups":[{"title":"Classes","kind":128,"children":[71,6,2,56]},{"title":"Functions","kind":64,"children":[76,82,86]}]} \ No newline at end of file +{"name":"aurelia-testing","children":[{"id":17,"name":"CompileSpy","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Attribute to be placed on any element to have it emit the View Compiler's\nTargetInstruction into the debug console, giving you insight into all the\nparsed bindings, behaviors and event handers for the targeted element."},"children":[{"id":18,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"comment":{"shortText":"Creates and instanse of CompileSpy."},"signatures":[{"id":19,"name":"new CompileSpy","kind":16384,"kindString":"Constructor signature","flags":{},"comment":{"shortText":"Creates and instanse of CompileSpy."},"parameters":[{"id":20,"name":"element","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"target element on where attribute is placed on."},"type":{"type":"instrinct","name":"any"}},{"id":21,"name":"instruction","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"instructions for how the target element should be enhanced.\n"},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"reference","name":"CompileSpy","id":17}}]}],"groups":[{"title":"Constructors","kind":512,"children":[18]}]},{"id":26,"name":"ComponentTester","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":31,"name":"attached","kind":1024,"kindString":"Property","flags":{"isExported":true},"type":{"type":"reflection","declaration":{"id":32,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":33,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"instrinct","name":"void"}}]}}},{"id":27,"name":"bind","kind":1024,"kindString":"Property","flags":{"isExported":true},"type":{"type":"reflection","declaration":{"id":28,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":29,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":30,"name":"bindingContext","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"void"}}]}}},{"id":39,"name":"configure","kind":1024,"kindString":"Property","flags":{"isExported":true},"type":{"type":"instrinct","name":"any"}},{"id":37,"name":"element","kind":1024,"kindString":"Property","flags":{"isExported":true},"type":{"type":"reference","name":"Element"}},{"id":34,"name":"unbind","kind":1024,"kindString":"Property","flags":{"isExported":true},"type":{"type":"reflection","declaration":{"id":35,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":36,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"instrinct","name":"void"}}]}}},{"id":38,"name":"viewModel","kind":1024,"kindString":"Property","flags":{"isExported":true},"type":{"type":"instrinct","name":"any"}},{"id":40,"name":"bootstrap","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":41,"name":"bootstrap","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":42,"name":"configure","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reflection","declaration":{"id":43,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":44,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":45,"name":"aurelia","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"Aurelia"}}],"type":{"type":"instrinct","name":"void"}}]}}}],"type":{"type":"instrinct","name":"any"}}]},{"id":52,"name":"boundTo","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":53,"name":"boundTo","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":54,"name":"bindingContext","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"reference","name":"ComponentTester","id":26}}]},{"id":57,"name":"create","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":58,"name":"create","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":59,"name":"bootstrap","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reflection","declaration":{"id":60,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":61,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":62,"name":"configure","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reflection","declaration":{"id":63,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":64,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":65,"name":"aurelia","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"Aurelia"}}],"type":{"type":"reference","name":"Promise","typeArguments":[{"type":"instrinct","name":"void"}]}}]}}}],"type":{"type":"reference","name":"Promise","typeArguments":[{"type":"instrinct","name":"void"}]}}]}}}],"type":{"type":"reference","name":"Promise","typeArguments":[{"type":"instrinct","name":"void"}]}}]},{"id":66,"name":"dispose","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":67,"name":"dispose","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"instrinct","name":"any"}}]},{"id":49,"name":"inView","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":50,"name":"inView","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":51,"name":"html","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"string"}}],"type":{"type":"reference","name":"ComponentTester","id":26}}]},{"id":55,"name":"manuallyHandleLifecycle","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":56,"name":"manuallyHandleLifecycle","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"reference","name":"ComponentTester","id":26}}]},{"id":68,"name":"waitForElement","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":69,"name":"waitForElement","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":70,"name":"selector","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"string"}},{"id":71,"name":"options","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"reference","name":"Promise","typeArguments":[{"type":"reference","name":"Element"}]}}]},{"id":72,"name":"waitForElements","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":73,"name":"waitForElements","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":74,"name":"selector","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"string"}},{"id":75,"name":"options","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"reference","name":"Promise","typeArguments":[{"type":"reference","name":"Element"}]}}]},{"id":46,"name":"withResources","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":47,"name":"withResources","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":48,"name":"resources","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"union","types":[{"type":"instrinct","name":"string"},{"type":"instrinct","isArray":true,"name":"string"}]}}],"type":{"type":"reference","name":"ComponentTester","id":26}}]}],"groups":[{"title":"Properties","kind":1024,"children":[31,27,39,37,34,38]},{"title":"Methods","kind":2048,"children":[40,52,57,66,49,55,68,72,46]}]},{"id":22,"name":"StageComponent","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":23,"name":"withResources","kind":2048,"kindString":"Method","flags":{"isStatic":true,"isExported":true},"signatures":[{"id":24,"name":"withResources","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":25,"name":"resources","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"union","types":[{"type":"instrinct","name":"string"},{"type":"instrinct","isArray":true,"name":"string"}]}}],"type":{"type":"reference","name":"ComponentTester","id":26}}]}],"groups":[{"title":"Methods","kind":2048,"children":[23]}]},{"id":2,"name":"ViewSpy","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Attribute to be placed on any HTML element in a view to emit the View instance\nto the debug console, giving you insight into the live View instance, including\nall child views, live bindings, behaviors and more."},"children":[{"id":3,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"comment":{"shortText":"Creates a new instance of ViewSpy."},"signatures":[{"id":4,"name":"new ViewSpy","kind":16384,"kindString":"Constructor signature","flags":{},"comment":{"shortText":"Creates a new instance of ViewSpy."},"type":{"type":"reference","name":"ViewSpy","id":2}}]},{"id":11,"name":"attached","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":12,"name":"attached","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked when the target element is attached to the DOM."},"type":{"type":"instrinct","name":"any"}}]},{"id":8,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":9,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked when the target view is bound."},"parameters":[{"id":10,"name":"bindingContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The target view's binding context.\n"},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"any"}}]},{"id":5,"name":"created","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":6,"name":"created","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked when the target view is created."},"parameters":[{"id":7,"name":"view","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The target view.\n"},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"any"}}]},{"id":13,"name":"detached","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":14,"name":"detached","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked when the target element is detached from the DOM."},"type":{"type":"instrinct","name":"any"}}]},{"id":15,"name":"unbind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":16,"name":"unbind","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked when the target element is unbound."},"type":{"type":"instrinct","name":"any"}}]}],"groups":[{"title":"Constructors","kind":512,"children":[3]},{"title":"Methods","kind":2048,"children":[11,8,5,13,15]}]},{"id":76,"name":"waitFor","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":77,"name":"waitFor","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Generic function to wait for something to happen. Uses polling"},"parameters":[{"id":78,"name":"getter","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reflection","declaration":{"id":79,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":80,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"instrinct","name":"any"}}]}}},{"id":81,"name":"options","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"reference","name":"Promise","typeArguments":[{"type":"instrinct","name":"any"}]}}]},{"id":82,"name":"waitForDocumentElement","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":83,"name":"waitForDocumentElement","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":84,"name":"selector","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"string"}},{"id":85,"name":"options","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"reference","name":"Promise","typeArguments":[{"type":"reference","name":"Element"}]}}]},{"id":86,"name":"waitForDocumentElements","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":87,"name":"waitForDocumentElements","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":88,"name":"selector","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"string"}},{"id":89,"name":"options","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"reference","name":"Promise","typeArguments":[{"type":"reference","name":"Element"}]}}]}],"groups":[{"title":"Classes","kind":128,"children":[17,26,22,2]},{"title":"Functions","kind":64,"children":[76,82,86]}]} \ No newline at end of file diff --git a/package.json b/package.json index 9de77ef..c880021 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aurelia-testing", - "version": "1.0.0-beta.3.0.0", + "version": "1.0.0-beta.3.0.1", "description": "A collection of helpers for testing Aurelia apps and components.", "keywords": [ "aurelia",