-
-
Notifications
You must be signed in to change notification settings - Fork 87
/
Copy pathshim-jquery.js
55 lines (46 loc) · 1.3 KB
/
shim-jquery.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
'use strict';
/*jshint asi: true*/
var testLib = require('./utils/test-lib')
, test = require('tap').test
, baseUrl = 'http://code.jquery.com/'
, shimConfig = { exports: '$' }
test('jquery version 1.6.4', function (t) {
var jq = {
name: 'jquery-1.6.4.min.js'
, test: function (t, resolved) { t.equals(resolved().jquery, '1.6.4', 'shims jquery 1.6.4') }
, asserts: 1
, shimConfig: shimConfig
, baseUrl: baseUrl
}
testLib(t, jq);
})
test('jquery version 1.7.2', function (t) {
var jq = {
name: 'jquery-1.7.2.min.js'
, test: function (t, resolved) { t.equals(resolved().jquery, '1.7.2', 'shims jquery 1.7.2') }
, asserts: 1
, shimConfig: shimConfig
, baseUrl: baseUrl
}
testLib(t, jq);
})
test('jquery version 1.8.3', function (t) {
var jq = {
name: 'jquery-1.8.3.min.js'
, test: function (t, resolved) { t.equals(resolved().jquery, '1.8.3', 'shims jquery 1.8.3') }
, asserts: 1
, shimConfig: shimConfig
, baseUrl: baseUrl
}
testLib(t, jq);
})
test('jquery version 2.0.3', function (t) {
var jq = {
name: 'jquery-2.0.3.min.js'
, test: function (t, resolved) { t.equals(resolved().jquery, '2.0.3', 'shims jquery 2.0.3') }
, asserts: 1
, shimConfig: shimConfig
, baseUrl: baseUrl
}
testLib(t, jq);
})