Skip to content

Commit

Permalink
chore(all): prepare release 0.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Jun 18, 2016
1 parent d505303 commit 8e9da76
Show file tree
Hide file tree
Showing 9 changed files with 44 additions and 16 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-testing",
"version": "0.4.1",
"version": "0.4.2",
"description": "A collection of helpers for testing Aurelia apps and components.",
"keywords": [
"aurelia",
Expand Down
8 changes: 6 additions & 2 deletions dist/amd/component-tester.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,19 @@ define(['exports', 'aurelia-bootstrapper', 'aurelia-templating', 'aurelia-framew

return (0, _aureliaBootstrapper.bootstrap)(function (aurelia) {
return Promise.resolve(_this.configure(aurelia)).then(function () {
aurelia.use.globalResources(_this._resources);
if (_this._resources) {
aurelia.use.globalResources(_this._resources);
}
return aurelia.start().then(function (a) {
var host = document.createElement('div');
host.innerHTML = _this._html;
document.body.appendChild(host);
aurelia.enhance(_this._bindingContext, host);
_this._rootView = aurelia.root;
_this.element = host.firstElementChild;
_this.viewModel = _this.element.au.controller.viewModel;
if (aurelia.root.controllers.length) {
_this.viewModel = aurelia.root.controllers[0].viewModel;
}
_this.dispose = function () {
return host.parentNode.removeChild(host);
};
Expand Down
8 changes: 6 additions & 2 deletions dist/aurelia-testing.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,19 @@ export class ComponentTester {
create(): Promise<void> {
return bootstrap(aurelia => {
return Promise.resolve(this.configure(aurelia)).then(() => {
aurelia.use.globalResources(this._resources);
if (this._resources) {
aurelia.use.globalResources(this._resources);
}
return aurelia.start().then(a => {
let host = document.createElement('div');
host.innerHTML = this._html;
document.body.appendChild(host);
aurelia.enhance(this._bindingContext, host);
this._rootView = aurelia.root;
this.element = host.firstElementChild;
this.viewModel = this.element.au.controller.viewModel;
if (aurelia.root.controllers.length) {
this.viewModel = aurelia.root.controllers[0].viewModel;
}
this.dispose = () => host.parentNode.removeChild(host);
return new Promise(resolve => setTimeout(() => resolve(), 0));
});
Expand Down
8 changes: 6 additions & 2 deletions dist/commonjs/component-tester.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,19 @@ var ComponentTester = exports.ComponentTester = function () {

return (0, _aureliaBootstrapper.bootstrap)(function (aurelia) {
return Promise.resolve(_this.configure(aurelia)).then(function () {
aurelia.use.globalResources(_this._resources);
if (_this._resources) {
aurelia.use.globalResources(_this._resources);
}
return aurelia.start().then(function (a) {
var host = document.createElement('div');
host.innerHTML = _this._html;
document.body.appendChild(host);
aurelia.enhance(_this._bindingContext, host);
_this._rootView = aurelia.root;
_this.element = host.firstElementChild;
_this.viewModel = _this.element.au.controller.viewModel;
if (aurelia.root.controllers.length) {
_this.viewModel = aurelia.root.controllers[0].viewModel;
}
_this.dispose = function () {
return host.parentNode.removeChild(host);
};
Expand Down
8 changes: 6 additions & 2 deletions dist/es2015/component-tester.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,19 @@ export let ComponentTester = class ComponentTester {
create() {
return bootstrap(aurelia => {
return Promise.resolve(this.configure(aurelia)).then(() => {
aurelia.use.globalResources(this._resources);
if (this._resources) {
aurelia.use.globalResources(this._resources);
}
return aurelia.start().then(a => {
let host = document.createElement('div');
host.innerHTML = this._html;
document.body.appendChild(host);
aurelia.enhance(this._bindingContext, host);
this._rootView = aurelia.root;
this.element = host.firstElementChild;
this.viewModel = this.element.au.controller.viewModel;
if (aurelia.root.controllers.length) {
this.viewModel = aurelia.root.controllers[0].viewModel;
}
this.dispose = () => host.parentNode.removeChild(host);
return new Promise(resolve => setTimeout(() => resolve(), 0));
});
Expand Down
8 changes: 6 additions & 2 deletions dist/native-modules/component-tester.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,19 @@ export var ComponentTester = function () {

return bootstrap(function (aurelia) {
return Promise.resolve(_this.configure(aurelia)).then(function () {
aurelia.use.globalResources(_this._resources);
if (_this._resources) {
aurelia.use.globalResources(_this._resources);
}
return aurelia.start().then(function (a) {
var host = document.createElement('div');
host.innerHTML = _this._html;
document.body.appendChild(host);
aurelia.enhance(_this._bindingContext, host);
_this._rootView = aurelia.root;
_this.element = host.firstElementChild;
_this.viewModel = _this.element.au.controller.viewModel;
if (aurelia.root.controllers.length) {
_this.viewModel = aurelia.root.controllers[0].viewModel;
}
_this.dispose = function () {
return host.parentNode.removeChild(host);
};
Expand Down
8 changes: 6 additions & 2 deletions dist/system/component-tester.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,19 @@ System.register(['aurelia-bootstrapper', 'aurelia-templating', 'aurelia-framewor

return bootstrap(function (aurelia) {
return Promise.resolve(_this.configure(aurelia)).then(function () {
aurelia.use.globalResources(_this._resources);
if (_this._resources) {
aurelia.use.globalResources(_this._resources);
}
return aurelia.start().then(function (a) {
var host = document.createElement('div');
host.innerHTML = _this._html;
document.body.appendChild(host);
aurelia.enhance(_this._bindingContext, host);
_this._rootView = aurelia.root;
_this.element = host.firstElementChild;
_this.viewModel = _this.element.au.controller.viewModel;
if (aurelia.root.controllers.length) {
_this.viewModel = aurelia.root.controllers[0].viewModel;
}
_this.dispose = function () {
return host.parentNode.removeChild(host);
};
Expand Down
8 changes: 6 additions & 2 deletions dist/temp/aurelia-testing.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,19 @@ var ComponentTester = exports.ComponentTester = function () {

return (0, _aureliaBootstrapper.bootstrap)(function (aurelia) {
return Promise.resolve(_this.configure(aurelia)).then(function () {
aurelia.use.globalResources(_this._resources);
if (_this._resources) {
aurelia.use.globalResources(_this._resources);
}
return aurelia.start().then(function (a) {
var host = document.createElement('div');
host.innerHTML = _this._html;
document.body.appendChild(host);
aurelia.enhance(_this._bindingContext, host);
_this._rootView = aurelia.root;
_this.element = host.firstElementChild;
_this.viewModel = _this.element.au.controller.viewModel;
if (aurelia.root.controllers.length) {
_this.viewModel = aurelia.root.controllers[0].viewModel;
}
_this.dispose = function () {
return host.parentNode.removeChild(host);
};
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-testing",
"version": "0.4.1",
"version": "0.4.2",
"description": "A collection of helpers for testing Aurelia apps and components.",
"keywords": [
"aurelia",
Expand Down

0 comments on commit 8e9da76

Please sign in to comment.