Skip to content

Commit

Permalink
Merge pull request #3 from azizpunjani/issue156
Browse files Browse the repository at this point in the history
Issue156
  • Loading branch information
theoshu committed Dec 8, 2015
2 parents 9fed923 + ff53328 commit df08451
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ There are several utility functions provided in the */test-support/helpers/sl/ut
internally by the helpers themselves, can be imported as needed for use. These include:

* convertToArray()
convertStringToArray()
* convertStringToArray()
* convertObjectKeysToArray()
* doArraysIntersect()

Expand Down
12 changes: 11 additions & 1 deletion tests/unit/helpers/sl/synchronous/global-libaries-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ test( 'triggerEvents triggers respective events', function( assert ) {

globalLibraries.triggerEvents( component );

Object.keys( events ).forEach(( eventName ) => {
Object.keys( events ).forEach( ( eventName ) => {
const spy = events[ eventName ];
assert.ok(
spy.called,
Expand Down Expand Up @@ -90,3 +90,13 @@ test( 'called() returns true when Ember.$ is referenced', function( assert ) {

globalLibraries.restoreSpies();
});

test( 'called() returns false when global libraries are not referenced', function( assert ) {
globalLibraries.setupSpies();

assert.notOk(
globalLibraries.called()
);

globalLibraries.restoreSpies();
});

0 comments on commit df08451

Please sign in to comment.