[484] | 1 | var grunt = require('grunt'); |
---|
| 2 | |
---|
| 3 | var fs = require('fs'); |
---|
| 4 | exports['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 | }; |
---|