Skip to content

Instantly share code, notes, and snippets.

@teropa
Created January 25, 2016 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save teropa/deda792364e64e43e167 to your computer and use it in GitHub Desktop.
Save teropa/deda792364e64e43e167 to your computer and use it in GitHub Desktop.
A2 ES5 spec
'use strict';
// Unpack NG2 Jasmine wrappers
var describe = ng.testing.describe,
beforeEach = ng.testing.beforeEach,
beforeEachProviders = ng.testing.beforeEachProviders,
inject = ng.testing.inject,
it = ng.testing.it;
describe('Phones', function() {
beforeAll(function() {
ng.platform.browser.BrowserDomAdapter.makeCurrent();
});
beforeEachProviders(function() {
return [app.Phones, ng.http.HTTP_PROVIDERS]
});
it('check the existence of Phones', inject([app.Phones], function(phones) {
expect(phones).toBeDefined();
}));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment