diff options
Diffstat (limited to 'test/ngScenario/ScenarioSpec.js')
| -rw-r--r-- | test/ngScenario/ScenarioSpec.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/ngScenario/ScenarioSpec.js b/test/ngScenario/ScenarioSpec.js index cc2efd1e..898075cb 100644 --- a/test/ngScenario/ScenarioSpec.js +++ b/test/ngScenario/ScenarioSpec.js @@ -29,4 +29,16 @@ describe("ScenarioSpec: Compilation", function() { expect(jqLite(element).text()).toEqual('123'); })); }); + + describe('jQuery', function () { + it('should exist on the angular.scenario object', function () { + expect(angular.scenario.jQuery).toBeDefined(); + }); + + it('should have common jQuery methods', function () { + var jQuery = angular.scenario.jQuery; + expect(typeof jQuery).toEqual('function'); + expect(typeof jQuery('<div></div>').html).toEqual('function'); + }) + }); }); |
