Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aurelia-testing

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aurelia-testing - npm Package Compare versions

Comparing version 1.0.0-beta.2.0.0 to 1.0.0-beta.2.0.1

build/tasks/ci.js

2

bower.json
{
"name": "aurelia-testing",
"version": "1.0.0-beta.2.0.0",
"version": "1.0.0-beta.2.0.1",
"description": "A collection of helpers for testing Aurelia apps and components.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -9,35 +9,10 @@ System.config({

map: {
"aurelia-bootstrapper": "npm:aurelia-bootstrapper@1.0.0-beta.2.0.0",
"aurelia-bootstrapper": "npm:aurelia-bootstrapper@1.0.0",
"aurelia-dependency-injection": "npm:aurelia-dependency-injection@1.0.0",
"aurelia-framework": "npm:aurelia-framework@1.0.0",
"aurelia-framework": "npm:aurelia-framework@1.0.1",
"aurelia-logging": "npm:aurelia-logging@1.0.0",
"aurelia-pal": "npm:aurelia-pal@1.0.0",
"aurelia-pal-browser": "npm:aurelia-pal-browser@1.0.0",
"aurelia-polyfills": "npm:aurelia-polyfills@1.0.0",
"aurelia-templating": "npm:aurelia-templating@1.0.0",
"babel": "npm:babel-core@5.8.38",
"babel-runtime": "npm:babel-runtime@5.8.38",
"core-js": "npm:core-js@1.2.7",
"github:jspm/nodelibs-assert@0.1.0": {
"assert": "npm:assert@1.4.1"
},
"github:jspm/nodelibs-buffer@0.1.0": {
"buffer": "npm:buffer@3.6.0"
},
"github:jspm/nodelibs-path@0.1.0": {
"path-browserify": "npm:path-browserify@0.0.0"
},
"github:jspm/nodelibs-process@0.1.2": {
"process": "npm:process@0.11.6"
},
"github:jspm/nodelibs-util@0.1.0": {
"util": "npm:util@0.10.3"
},
"github:jspm/nodelibs-vm@0.1.0": {
"vm-browserify": "npm:vm-browserify@0.0.4"
},
"npm:assert@1.4.1": {
"assert": "github:jspm/nodelibs-assert@0.1.0",
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"process": "github:jspm/nodelibs-process@0.1.2",
"util": "npm:util@0.10.3"
},
"npm:aurelia-binding@1.0.0": {

@@ -49,24 +24,18 @@ "aurelia-logging": "npm:aurelia-logging@1.0.0",

},
"npm:aurelia-binding@1.0.0-beta.2.0.5": {
"aurelia-logging": "npm:aurelia-logging@1.0.0-beta.2.0.0",
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.2.0.0",
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.3.0",
"aurelia-task-queue": "npm:aurelia-task-queue@1.0.0-beta.2.0.0"
"npm:aurelia-bootstrapper@1.0.0": {
"aurelia-event-aggregator": "npm:aurelia-event-aggregator@1.0.0",
"aurelia-framework": "npm:aurelia-framework@1.0.1",
"aurelia-history": "npm:aurelia-history@1.0.0",
"aurelia-history-browser": "npm:aurelia-history-browser@1.0.0",
"aurelia-loader-default": "npm:aurelia-loader-default@1.0.0",
"aurelia-logging-console": "npm:aurelia-logging-console@1.0.0",
"aurelia-pal": "npm:aurelia-pal@1.0.0",
"aurelia-pal-browser": "npm:aurelia-pal-browser@1.0.0",
"aurelia-polyfills": "npm:aurelia-polyfills@1.0.0",
"aurelia-router": "npm:aurelia-router@1.0.2",
"aurelia-templating": "npm:aurelia-templating@1.0.0",
"aurelia-templating-binding": "npm:aurelia-templating-binding@1.0.0",
"aurelia-templating-resources": "npm:aurelia-templating-resources@1.0.0",
"aurelia-templating-router": "npm:aurelia-templating-router@1.0.0"
},
"npm:aurelia-bootstrapper@1.0.0-beta.2.0.0": {
"aurelia-event-aggregator": "npm:aurelia-event-aggregator@1.0.0-beta.2.0.0",
"aurelia-framework": "npm:aurelia-framework@1.0.0-beta.2.0.0",
"aurelia-history": "npm:aurelia-history@1.0.0-beta.2.0.0",
"aurelia-history-browser": "npm:aurelia-history-browser@1.0.0-beta.2.0.0",
"aurelia-loader-default": "npm:aurelia-loader-default@1.0.0-beta.2.0.0",
"aurelia-logging-console": "npm:aurelia-logging-console@1.0.0-beta.2.0.0",
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.3.0",
"aurelia-pal-browser": "npm:aurelia-pal-browser@1.0.0-beta.3.0.0",
"aurelia-polyfills": "npm:aurelia-polyfills@1.0.0-beta.2.0.0",
"aurelia-router": "npm:aurelia-router@1.0.0-beta.2.0.0",
"aurelia-templating": "npm:aurelia-templating@1.0.0-beta.3.0.2",
"aurelia-templating-binding": "npm:aurelia-templating-binding@1.0.0-beta.2.0.0",
"aurelia-templating-resources": "npm:aurelia-templating-resources@1.0.0-beta.3.0.0",
"aurelia-templating-router": "npm:aurelia-templating-router@1.0.0-beta.2.0.0"
},
"npm:aurelia-dependency-injection@1.0.0": {

@@ -76,10 +45,6 @@ "aurelia-metadata": "npm:aurelia-metadata@1.0.0",

},
"npm:aurelia-dependency-injection@1.0.0-beta.2.1.0": {
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.2.0.0",
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.3.0"
"npm:aurelia-event-aggregator@1.0.0": {
"aurelia-logging": "npm:aurelia-logging@1.0.0"
},
"npm:aurelia-event-aggregator@1.0.0-beta.2.0.0": {
"aurelia-logging": "npm:aurelia-logging@1.0.0-beta.2.0.0"
},
"npm:aurelia-framework@1.0.0": {
"npm:aurelia-framework@1.0.1": {
"aurelia-binding": "npm:aurelia-binding@1.0.0",

@@ -95,22 +60,11 @@ "aurelia-dependency-injection": "npm:aurelia-dependency-injection@1.0.0",

},
"npm:aurelia-framework@1.0.0-beta.2.0.0": {
"aurelia-binding": "npm:aurelia-binding@1.0.0-beta.2.0.5",
"aurelia-dependency-injection": "npm:aurelia-dependency-injection@1.0.0-beta.2.1.0",
"aurelia-loader": "npm:aurelia-loader@1.0.0-beta.2.0.0",
"aurelia-logging": "npm:aurelia-logging@1.0.0-beta.2.0.0",
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.2.0.0",
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.3.0",
"aurelia-path": "npm:aurelia-path@1.0.0-beta.2.0.0",
"aurelia-task-queue": "npm:aurelia-task-queue@1.0.0-beta.2.0.0",
"aurelia-templating": "npm:aurelia-templating@1.0.0-beta.3.0.2"
"npm:aurelia-history-browser@1.0.0": {
"aurelia-history": "npm:aurelia-history@1.0.0",
"aurelia-pal": "npm:aurelia-pal@1.0.0"
},
"npm:aurelia-history-browser@1.0.0-beta.2.0.0": {
"aurelia-history": "npm:aurelia-history@1.0.0-beta.2.0.0",
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.3.0"
"npm:aurelia-loader-default@1.0.0": {
"aurelia-loader": "npm:aurelia-loader@1.0.0",
"aurelia-metadata": "npm:aurelia-metadata@1.0.0",
"aurelia-pal": "npm:aurelia-pal@1.0.0"
},
"npm:aurelia-loader-default@1.0.0-beta.2.0.0": {
"aurelia-loader": "npm:aurelia-loader@1.0.0-beta.2.0.0",
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.2.0.0",
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.3.0"
},
"npm:aurelia-loader@1.0.0": {

@@ -120,63 +74,53 @@ "aurelia-metadata": "npm:aurelia-metadata@1.0.0",

},
"npm:aurelia-loader@1.0.0-beta.2.0.0": {
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.2.0.0",
"aurelia-path": "npm:aurelia-path@1.0.0-beta.2.0.0"
"npm:aurelia-logging-console@1.0.0": {
"aurelia-logging": "npm:aurelia-logging@1.0.0"
},
"npm:aurelia-logging-console@1.0.0-beta.2.0.0": {
"aurelia-logging": "npm:aurelia-logging@1.0.0-beta.2.0.0"
},
"npm:aurelia-metadata@1.0.0": {
"aurelia-pal": "npm:aurelia-pal@1.0.0"
},
"npm:aurelia-metadata@1.0.0-beta.2.0.0": {
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.3.0"
"npm:aurelia-pal-browser@1.0.0": {
"aurelia-pal": "npm:aurelia-pal@1.0.0"
},
"npm:aurelia-pal-browser@1.0.0-beta.3.0.0": {
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.3.0"
"npm:aurelia-polyfills@1.0.0": {
"aurelia-pal": "npm:aurelia-pal@1.0.0"
},
"npm:aurelia-polyfills@1.0.0-beta.2.0.0": {
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.3.0"
"npm:aurelia-route-recognizer@1.0.0": {
"aurelia-path": "npm:aurelia-path@1.0.0"
},
"npm:aurelia-route-recognizer@1.0.0-beta.2.0.0": {
"aurelia-path": "npm:aurelia-path@1.0.0-beta.2.0.0"
"npm:aurelia-router@1.0.2": {
"aurelia-dependency-injection": "npm:aurelia-dependency-injection@1.0.0",
"aurelia-event-aggregator": "npm:aurelia-event-aggregator@1.0.0",
"aurelia-history": "npm:aurelia-history@1.0.0",
"aurelia-logging": "npm:aurelia-logging@1.0.0",
"aurelia-path": "npm:aurelia-path@1.0.0",
"aurelia-route-recognizer": "npm:aurelia-route-recognizer@1.0.0"
},
"npm:aurelia-router@1.0.0-beta.2.0.0": {
"aurelia-dependency-injection": "npm:aurelia-dependency-injection@1.0.0-beta.2.1.0",
"aurelia-event-aggregator": "npm:aurelia-event-aggregator@1.0.0-beta.2.0.0",
"aurelia-history": "npm:aurelia-history@1.0.0-beta.2.0.0",
"aurelia-logging": "npm:aurelia-logging@1.0.0-beta.2.0.0",
"aurelia-path": "npm:aurelia-path@1.0.0-beta.2.0.0",
"aurelia-route-recognizer": "npm:aurelia-route-recognizer@1.0.0-beta.2.0.0"
},
"npm:aurelia-task-queue@1.0.0": {
"aurelia-pal": "npm:aurelia-pal@1.0.0"
},
"npm:aurelia-task-queue@1.0.0-beta.2.0.0": {
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.3.0"
"npm:aurelia-templating-binding@1.0.0": {
"aurelia-binding": "npm:aurelia-binding@1.0.0",
"aurelia-logging": "npm:aurelia-logging@1.0.0",
"aurelia-templating": "npm:aurelia-templating@1.0.0"
},
"npm:aurelia-templating-binding@1.0.0-beta.2.0.0": {
"aurelia-binding": "npm:aurelia-binding@1.0.0-beta.2.0.5",
"aurelia-logging": "npm:aurelia-logging@1.0.0-beta.2.0.0",
"aurelia-templating": "npm:aurelia-templating@1.0.0-beta.3.0.2"
"npm:aurelia-templating-resources@1.0.0": {
"aurelia-binding": "npm:aurelia-binding@1.0.0",
"aurelia-dependency-injection": "npm:aurelia-dependency-injection@1.0.0",
"aurelia-loader": "npm:aurelia-loader@1.0.0",
"aurelia-logging": "npm:aurelia-logging@1.0.0",
"aurelia-metadata": "npm:aurelia-metadata@1.0.0",
"aurelia-pal": "npm:aurelia-pal@1.0.0",
"aurelia-path": "npm:aurelia-path@1.0.0",
"aurelia-task-queue": "npm:aurelia-task-queue@1.0.0",
"aurelia-templating": "npm:aurelia-templating@1.0.0"
},
"npm:aurelia-templating-resources@1.0.0-beta.3.0.0": {
"aurelia-binding": "npm:aurelia-binding@1.0.0-beta.2.0.5",
"aurelia-dependency-injection": "npm:aurelia-dependency-injection@1.0.0-beta.2.1.0",
"aurelia-loader": "npm:aurelia-loader@1.0.0-beta.2.0.0",
"aurelia-logging": "npm:aurelia-logging@1.0.0-beta.2.0.0",
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.2.0.0",
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.3.0",
"aurelia-path": "npm:aurelia-path@1.0.0-beta.2.0.0",
"aurelia-task-queue": "npm:aurelia-task-queue@1.0.0-beta.2.0.0",
"aurelia-templating": "npm:aurelia-templating@1.0.0-beta.3.0.2"
"npm:aurelia-templating-router@1.0.0": {
"aurelia-dependency-injection": "npm:aurelia-dependency-injection@1.0.0",
"aurelia-logging": "npm:aurelia-logging@1.0.0",
"aurelia-metadata": "npm:aurelia-metadata@1.0.0",
"aurelia-pal": "npm:aurelia-pal@1.0.0",
"aurelia-path": "npm:aurelia-path@1.0.0",
"aurelia-router": "npm:aurelia-router@1.0.2",
"aurelia-templating": "npm:aurelia-templating@1.0.0"
},
"npm:aurelia-templating-router@1.0.0-beta.2.0.0": {
"aurelia-dependency-injection": "npm:aurelia-dependency-injection@1.0.0-beta.2.1.0",
"aurelia-logging": "npm:aurelia-logging@1.0.0-beta.2.0.0",
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.2.0.0",
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.3.0",
"aurelia-path": "npm:aurelia-path@1.0.0-beta.2.0.0",
"aurelia-router": "npm:aurelia-router@1.0.0-beta.2.0.0",
"aurelia-templating": "npm:aurelia-templating@1.0.0-beta.3.0.2"
},
"npm:aurelia-templating@1.0.0": {

@@ -191,49 +135,4 @@ "aurelia-binding": "npm:aurelia-binding@1.0.0",

"aurelia-task-queue": "npm:aurelia-task-queue@1.0.0"
},
"npm:aurelia-templating@1.0.0-beta.3.0.2": {
"aurelia-binding": "npm:aurelia-binding@1.0.0-beta.2.0.5",
"aurelia-dependency-injection": "npm:aurelia-dependency-injection@1.0.0-beta.2.1.0",
"aurelia-loader": "npm:aurelia-loader@1.0.0-beta.2.0.0",
"aurelia-logging": "npm:aurelia-logging@1.0.0-beta.2.0.0",
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.2.0.0",
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.3.0",
"aurelia-path": "npm:aurelia-path@1.0.0-beta.2.0.0",
"aurelia-task-queue": "npm:aurelia-task-queue@1.0.0-beta.2.0.0"
},
"npm:babel-runtime@5.8.38": {
"process": "github:jspm/nodelibs-process@0.1.2"
},
"npm:buffer@3.6.0": {
"base64-js": "npm:base64-js@0.0.8",
"child_process": "github:jspm/nodelibs-child_process@0.1.0",
"fs": "github:jspm/nodelibs-fs@0.1.2",
"ieee754": "npm:ieee754@1.1.6",
"isarray": "npm:isarray@1.0.0",
"process": "github:jspm/nodelibs-process@0.1.2"
},
"npm:core-js@1.2.7": {
"fs": "github:jspm/nodelibs-fs@0.1.2",
"path": "github:jspm/nodelibs-path@0.1.0",
"process": "github:jspm/nodelibs-process@0.1.2",
"systemjs-json": "github:systemjs/plugin-json@0.1.2"
},
"npm:inherits@2.0.1": {
"util": "github:jspm/nodelibs-util@0.1.0"
},
"npm:path-browserify@0.0.0": {
"process": "github:jspm/nodelibs-process@0.1.2"
},
"npm:process@0.11.6": {
"assert": "github:jspm/nodelibs-assert@0.1.0",
"fs": "github:jspm/nodelibs-fs@0.1.2",
"vm": "github:jspm/nodelibs-vm@0.1.0"
},
"npm:util@0.10.3": {
"inherits": "npm:inherits@2.0.1",
"process": "github:jspm/nodelibs-process@0.1.2"
},
"npm:vm-browserify@0.0.4": {
"indexof": "npm:indexof@0.0.1"
}
}
});

@@ -70,3 +70,3 @@ ---

component = StageComponent
.withResources('src/my-component')
.withResources('my-component')
.inView('<my-component first-name.bind="firstName"></my-component>')

@@ -81,3 +81,3 @@ .boundTo({ firstName: 'Bob' });

done();
});
}).catch(e => { console.log(e.toString()) });
});

@@ -111,4 +111,6 @@

`StageComponent` comes with one property, `withResources`, that lets you start off the staging with a fluent API. `withResources` lets you specify which resource or resources for Aurelia to register. It takes either a string for registering one single resource or an Array of strings for registering multiple resources. `inView` lets you provide the html markup to be run. This is just a standard Aurelia view where you can do all the data binding you are used to in a full-blown Aurelia application. `boundTo` lets you provide a test `viewModel` with the data that the view will get bound to. In this example, the staging of the component is done in Jasmine's `beforeEach` method in order to reuse the same setup for multiple tests.
`StageComponent` comes with one property, `withResources`, that lets you start off the staging with a fluent API. `withResources` lets you specify which resource or resources for Aurelia to register. It takes either a string for registering one single resource or an Array of strings for registering multiple resources. `inView` lets you provide the html markup to be run. This is just a standard Aurelia view where you can do all the data binding you are used to in a full-blown Aurelia application. `boundTo` lets you provide a test `viewModel` with the data that the view will get bound to. In this example, the staging of the component is done in Jasmine's `beforeEach` method in order to reuse the same setup for multiple tests.
> Note: If you are using `karma` and your configuration already has a path for `'*': 'src/*'` set you may not need to use `src/`, and just `my-component`.
Next, we come to the actual test where we call `create` on the `ComponentTester`. Create will kick everything off and bootstrap the mini Aurelia application, configure it with `standardConfiguration` (we will take a look later at how you can run with your own configuration), register provided resources as global resources, start the application and finally render your component so you can assert the expected behavior. In this case, we want to make sure our `firstName` property gets rendered correctly in the HTML by selecting the `div` tag via it's class name. We use `document.querySelector('.firstName');` to grab that and then check that its innerHTML is `Bob`. Next we call Jasmine's `done` function to tell Jasmine that the test is complete. Calling `done` is needed since the `create` method is asynchronous and returns a Promise.

@@ -158,3 +160,3 @@

done();
});
}).catch(e => console.log(e.toString()));
});

@@ -161,0 +163,0 @@

@@ -9,4 +9,4 @@ <!--

Durandal Inc. offers paid support agreements. Further information regarding paid support
may be obtained by emailing support@durandal.io
Blue Spire offers paid support agreements. Further information regarding paid support
may be obtained by emailing support@bluespire.com

@@ -13,0 +13,0 @@ Future support requests submitted here will be closed.

@@ -17,3 +17,4 @@ // Karma configuration

// Edit this to your needs
loadFiles: ['src/**/*.js', 'test/**/*.js']
loadFiles: ['test/setup.js', 'test/**/*.spec.js'],
serveFiles: ['src/**/*.js', 'test/resources/**/*']
},

@@ -20,0 +21,0 @@

{
"name": "aurelia-testing",
"version": "1.0.0-beta.2.0.0",
"version": "1.0.0-beta.2.0.1",
"description": "A collection of helpers for testing Aurelia apps and components.",

@@ -21,2 +21,6 @@ "keywords": [

},
"scripts": {
"test": "gulp test",
"ci": "gulp ci"
},
"jspmNodeConversion": false,

@@ -46,5 +50,5 @@ "jspm": {

"devDependencies": {
"babel": "babel-core@^5.8.24",
"babel-runtime": "^5.8.24",
"core-js": "^1.1.4"
"aurelia-bootstrapper": "^1.0.0",
"aurelia-pal-browser": "^1.0.0",
"aurelia-polyfills": "^1.0.0"
}

@@ -51,0 +55,0 @@ },

@@ -10,3 +10,3 @@ # aurelia-testing

> To keep up to date on [Aurelia](http://www.aurelia.io/), please visit and subscribe to [the official blog](http://blog.durandal.io/) and [our email list](http://durandal.us10.list-manage1.com/subscribe?u=dae7661a3872ee02b519f6f29&id=3de6801ccc). We also invite you to [follow us on twitter](https://twitter.com/aureliaeffect). If you have questions, please [join our community on Gitter](https://gitter.im/aurelia/discuss). If you would like to have deeper insight into our development process, please install the [ZenHub](https://zenhub.io) Chrome or Firefox Extension and visit any of our repository's boards. You can get an overview of all Aurelia work by visiting [the framework board](https://github.com/aurelia/framework#boards).
> To keep up to date on [Aurelia](http://www.aurelia.io/), please visit and subscribe to [the official blog](http://blog.aurelia.io/) and [our email list](http://eepurl.com/ces50j). We also invite you to [follow us on twitter](https://twitter.com/aureliaeffect). If you have questions, please [join our community on Gitter](https://gitter.im/aurelia/discuss) or use [stack overflow](http://stackoverflow.com/search?q=aurelia). Documentation can be found [in our developer hub](http://aurelia.io/hub.html). If you would like to have deeper insight into our development process, please install the [ZenHub](https://zenhub.io) Chrome or Firefox Extension and visit any of our repository's boards.

@@ -13,0 +13,0 @@ ## Platform Support

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc