diff options
Diffstat (limited to 'tests/lib/mocha-3.1.0/test/integration/fixtures/diffs')
4 files changed, 0 insertions, 197 deletions
diff --git a/tests/lib/mocha-3.1.0/test/integration/fixtures/diffs/diffs.css.in b/tests/lib/mocha-3.1.0/test/integration/fixtures/diffs/diffs.css.in deleted file mode 100644 index 09a3ca5363..0000000000 --- a/tests/lib/mocha-3.1.0/test/integration/fixtures/diffs/diffs.css.in +++ /dev/null @@ -1,9 +0,0 @@ -body { - font: "Helvetica Neue", Helvetica, arial, sans-serif; - background: black; - color: white; -} - -a { - color: blue -} diff --git a/tests/lib/mocha-3.1.0/test/integration/fixtures/diffs/diffs.css.out b/tests/lib/mocha-3.1.0/test/integration/fixtures/diffs/diffs.css.out deleted file mode 100644 index 53b3ec906e..0000000000 --- a/tests/lib/mocha-3.1.0/test/integration/fixtures/diffs/diffs.css.out +++ /dev/null @@ -1,13 +0,0 @@ -body { - font: "Helvetica Neue", Helvetica, arial, sans-serif; - background: black; - color: #fff; -} - -a { - color: blue; -} - -foo { - bar: 'baz'; -} diff --git a/tests/lib/mocha-3.1.0/test/integration/fixtures/diffs/diffs.fixture.js b/tests/lib/mocha-3.1.0/test/integration/fixtures/diffs/diffs.fixture.js deleted file mode 100644 index cf538fd777..0000000000 --- a/tests/lib/mocha-3.1.0/test/integration/fixtures/diffs/diffs.fixture.js +++ /dev/null @@ -1,84 +0,0 @@ -var fs = require('fs'); -var assert = require('assert'); -var cssin = fs.readFileSync('test/integration/fixtures/diffs/diffs.css.in', 'ascii'); -var cssout = fs.readFileSync('test/integration/fixtures/diffs/diffs.css.out', 'ascii'); - -describe('diffs', function() { - var actual, expected; - - it('should display a diff for small strings', function() { - actual = 'foo rar baz'; - expected = 'foo bar baz'; - actual.should.equal(expected); - }); - - it('should display a diff of canonicalized objects', function() { - actual = { name: 'travis j', age: 23 }; - expected = { age: 23, name: 'travis' }; - actual.should.equal(expected); - }); - - it('should display a diff for medium strings', function() { - actual = 'foo bar baz\nfoo rar baz\nfoo bar raz'; - expected = 'foo bar baz\nfoo bar baz\nfoo bar baz'; - actual.should.equal(expected); - }); - - it('should display a diff for entire object dumps', function() { - actual = { name: 'joel', age: 30, address: {city: 'new york', country: 'usa' }}; - expected = { name: 'joe', age: 30, address: {city: 'new york', country: 'us' }}; - actual.should.equal(expected); - }); - - it('should display a diff for multi-line strings', function() { - actual = 'one two three\nfour zzzz six\nseven eight nine'; - expected = 'one two three\nfour five six\nseven eight nine'; - actual.should.equal(expected); - }); - - it('should display a diff for entire object dumps', function() { - actual = { name: 'joel', age: 30, address: {city: 'new york', country: 'usa' }}; - expected = { name: 'joe', age: 30, address: {city: 'new york', country: 'us' }} - actual.should.equal(expected); - }); - - it('should display a full-comparison with escaped special characters', function() { - actual = 'one\ttab\ntwo\t\t\ttabs'; - expected = 'one\ttab\ntwo\t\ttabs'; - actual.should.equal(expected); - }); - - it('should display a word diff for large strings', function() { - cssin.should.equal(cssout); - }); - - it('should work with objects', function() { - actual = { - name: 'tobi', - species: 'ferret', - color: 'white', - age: 2 - }; - - expected = { - name: 'loki', - species: 'ferret', - color: 'brown', - age: 2 - }; - - actual.should.eql(expected); - }); - - it('should show value diffs and not be affected by commas', function() { - actual = { a: 123 }; - expected = { a: 123, b: 456 }; - actual.should.equal(expected); - }); - - it('should display diff by data and not like an objects', function() { - actual = new Buffer([0x01]); - expected = new Buffer([0x02]); - actual.should.equal(expected); - }); -}); diff --git a/tests/lib/mocha-3.1.0/test/integration/fixtures/diffs/output b/tests/lib/mocha-3.1.0/test/integration/fixtures/diffs/output deleted file mode 100644 index bf56a96397..0000000000 --- a/tests/lib/mocha-3.1.0/test/integration/fixtures/diffs/output +++ /dev/null @@ -1,91 +0,0 @@ -// DIFF - -foo rar baz - +foo bar baz - -// DIFF - { - "age": 23 - - "name": "travis j" - + "name": "travis" - } - -// DIFF - foo bar baz - -foo rar baz - -foo bar raz - +foo bar baz - +foo bar baz - -// DIFF - { - "address": { - "city": "new york" - - "country": "usa" - + "country": "us" - } - "age": 30 - - "name": "joel" - + "name": "joe" - } - -// DIFF - one two three - -four zzzz six - +four five six - seven eight nine - -// DIFF - { - "address": { - "city": "new york" - - "country": "usa" - + "country": "us" - } - "age": 30 - - "name": "joel" - + "name": "joe" - } - -// DIFF - one tab - -two tabs - +two tabs - -// DIFF - body { - font: "Helvetica Neue", Helvetica, arial, sans-serif; - background: black; - - color: white; - + color: #fff; - } - - a { - - color: blue - + color: blue; - } - + - +foo { - + bar: 'baz'; - +} - -// DIFF - { - "age": 2 - - "color": "white" - - "name": "tobi" - + "color": "brown" - + "name": "loki" - "species": "ferret" - } - -// DIFF - { - "a": 123 - + "b": 456 - } - -// DIFF - [ - - 1 - + 2 - ] |