Skip to content

Commit

Permalink
fixing tests to support new file format for filmstrip
Browse files Browse the repository at this point in the history
  • Loading branch information
George Dickinson committed Mar 19, 2015
1 parent 1953a15 commit dcbd8b1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/lib/phantomasTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -596,19 +596,19 @@ exports.phantomas = {
fs.mkdirSync( './tmp/images' );
fs.mkdirSync( './tmp/images/123456' );

fs.writeFileSync( './tmp/images/123456/screenshot-2014-06-28T12:40:29-1000.png', 'foo' );
fs.writeFileSync( './tmp/images/123456/screenshot-2014-06-28T12:40:29-2000.png', 'bar' );
fs.writeFileSync( './tmp/images/123456/screenshot-2014-06-28T12:40:29-3000.png', 'baz' );
fs.writeFileSync( './tmp/images/123456/screenshot-2014-06-28T12-40-29-1000.png', 'foo' );
fs.writeFileSync( './tmp/images/123456/screenshot-2014-06-28T12-40-29-2000.png', 'bar' );
fs.writeFileSync( './tmp/images/123456/screenshot-2014-06-28T12-40-29-3000.png', 'baz' );

var images = phantomas.getImages();

test.strictEqual( images instanceof Array, true );

test.strictEqual( images.length, 3 );

test.strictEqual( images[ 0 ], 'screenshot-2014-06-28T12:40:29-1000.png' );
test.strictEqual( images[ 1 ], 'screenshot-2014-06-28T12:40:29-2000.png' );
test.strictEqual( images[ 2 ], 'screenshot-2014-06-28T12:40:29-3000.png' );
test.strictEqual( images[ 0 ], 'screenshot-2014-06-28T12-40-29-1000.png' );
test.strictEqual( images[ 1 ], 'screenshot-2014-06-28T12-40-29-2000.png' );
test.strictEqual( images[ 2 ], 'screenshot-2014-06-28T12-40-29-3000.png' );

test.done();
},
Expand Down

0 comments on commit dcbd8b1

Please sign in to comment.