Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 58cffa6

Browse files
committed
test(ngJq): add expectations, add test for specific version of jq
1 parent 27787d8 commit 58cffa6

File tree

3 files changed

+10
-18
lines changed

3 files changed

+10
-18
lines changed

test/e2e/fixtures/ngJq/index.html

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
<!DOCTYPE html>
22
<html ng-app="test" ng-jq>
33

4-
<div ng-controller="TestCtrl">
5-
<p>{{text}}</p>
6-
</div>
7-
84
<script src="../../../../bower_components/jquery/dist/jquery.js"></script>
95
<script src="angular.js"></script>
10-
<script src="script.js"></script>
6+
<script>
7+
angular.module('test', []);
8+
</script>
119
</html>

test/e2e/fixtures/ngJq/script.js

-4
This file was deleted.

test/e2e/tests/ngJqSpec.js

+7-9
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
// Sample E2E test:
2-
//
3-
describe('Force jqlite', function() {
4-
beforeEach(function() {
1+
describe('Customizing the jqlite / jquery version', function() {
2+
3+
it('should be able to force jqlite', function() {
54
loadFixture("ngJq").andWaitForAngular();
5+
expect(browser.executeScript('return window.angular.element !== window.jQuery')).toBe(true);
66
});
77

8-
it('should use jqlite', function() {
9-
expect(element(by.binding('text')).getText())
10-
.toBe('Hello, world!');
11-
12-
// expect(browser.executeScript('return window.angular.jq();')).toBe('');
8+
it('should be able to use a specific version jQuery', function() {
9+
loadFixture("ngJqJquery").andWaitForAngular();
10+
expect(browser.executeScript('return window.angular.element !== window.jQuery_2_0_0')).toBe(true);
1311
});
1412
});

0 commit comments

Comments
 (0)