source: Dev/trunk/node_modules/grunt-curl/test/curl-dir_test.js @ 484

Last change on this file since 484 was 484, checked in by hendrikvanantwerpen, 11 years ago

Commit node_modules, to make checkouts and builds more deterministic.

File size: 2.0 KB
Line 
1var grunt = require('grunt');
2
3var fs = require('fs');
4exports['curl-dir'] = {
5  setUp: function(done) {
6    // setup here
7    done();
8  },
9  'multi': function(test) {
10    test.expect(2);
11    // tests here
12    var expectedLabContent = grunt.file.read('expected/file.js'),
13        actualLabContent = grunt.file.read('actual/multi/LAB.min.js');
14    test.equal(actualLabContent, expectedLabContent, 'should return the correct value for LAB.min.js.');
15
16    var expectedCookiejarContent = grunt.file.read('expected/cookiejar.js'),
17        actualCookiejarContent = grunt.file.read('actual/multi/cookiejar.js');
18    test.equal(actualLabContent, expectedLabContent, 'should return the correct value for cookiejar.js.');
19
20    test.done();
21  },
22  'braceExpansion': function(test) {
23    test.expect(2);
24    // tests here
25    var expectedLabContent = grunt.file.read('expected/file.js'),
26        actualLabContent = grunt.file.read('actual/braceExpansion/LAB.min.js');
27    test.equal(actualLabContent, expectedLabContent, 'should return the correct value for LAB.min.js.');
28
29    var expectedCookiejarContent = grunt.file.read('expected/cookiejar.js'),
30        actualCookiejarContent = grunt.file.read('actual/braceExpansion/cookiejar.js');
31    test.equal(actualLabContent, expectedLabContent, 'should return the correct value for cookiejar.js.');
32
33    test.done();
34  },
35  'router': function(test) {
36    test.expect(2);
37    // tests here
38    var expectedLabContent = grunt.file.read('expected/file.js'),
39        actualLabContent = grunt.file.read('actual/router/ajax/libs/labjs/2.0.3/LAB.min.js');
40    test.equal(actualLabContent, expectedLabContent, 'should return the correct value for LAB.min.js.');
41
42    var expectedCookiejarContent = grunt.file.read('expected/cookiejar.js'),
43        actualCookiejarContent = grunt.file.read('actual/router/ajax/libs/cookiejar/0.5/cookiejar.js');
44    test.equal(actualLabContent, expectedLabContent, 'should return the correct value for cookiejar.js.');
45
46    test.done();
47  }
48};
Note: See TracBrowser for help on using the repository browser.