Skip to content

Commit

Permalink
Update code to v3. Closes #68
Browse files Browse the repository at this point in the history
  • Loading branch information
kanongil committed Jul 6, 2016
1 parent 5d258f6 commit 37824f5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"lru-cache": "4.0.x"
},
"devDependencies": {
"code": "2.x.x",
"code": "3.x.x",
"hapi": "13.x.x",
"lab": "10.x.x"
},
Expand Down
14 changes: 7 additions & 7 deletions test/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -1236,7 +1236,7 @@ describe('file', () => {
expect(res.headers['content-length']).to.equal(5);
expect(res.headers['content-range']).to.equal('bytes 0-4/42010');
expect(res.headers['accept-ranges']).to.equal('bytes');
expect(res.rawPayload).to.deep.equal(new Buffer('\x89PNG\r', 'ascii'));
expect(res.rawPayload).to.equal(new Buffer('\x89PNG\r', 'ascii'));
done();
});
});
Expand All @@ -1252,7 +1252,7 @@ describe('file', () => {
expect(res.headers['content-length']).to.equal(5);
expect(res.headers['content-range']).to.equal('bytes 1-5/42010');
expect(res.headers['accept-ranges']).to.equal('bytes');
expect(res.rawPayload).to.deep.equal(new Buffer('PNG\r\n', 'ascii'));
expect(res.rawPayload).to.equal(new Buffer('PNG\r\n', 'ascii'));
done();
});
});
Expand All @@ -1268,7 +1268,7 @@ describe('file', () => {
expect(res.headers['content-length']).to.equal(5);
expect(res.headers['content-range']).to.equal('bytes 42005-42009/42010');
expect(res.headers['accept-ranges']).to.equal('bytes');
expect(res.rawPayload).to.deep.equal(new Buffer('D\xAEB\x60\x82', 'ascii'));
expect(res.rawPayload).to.equal(new Buffer('D\xAEB\x60\x82', 'ascii'));
done();
});
});
Expand All @@ -1284,7 +1284,7 @@ describe('file', () => {
expect(res.headers['content-length']).to.equal(5);
expect(res.headers['content-range']).to.equal('bytes 42005-42009/42010');
expect(res.headers['accept-ranges']).to.equal('bytes');
expect(res.rawPayload).to.deep.equal(new Buffer('D\xAEB\x60\x82', 'ascii'));
expect(res.rawPayload).to.equal(new Buffer('D\xAEB\x60\x82', 'ascii'));
done();
});
});
Expand All @@ -1300,7 +1300,7 @@ describe('file', () => {
expect(res.headers['content-length']).to.equal(5);
expect(res.headers['content-range']).to.equal('bytes 42005-42009/42010');
expect(res.headers['accept-ranges']).to.equal('bytes');
expect(res.rawPayload).to.deep.equal(new Buffer('D\xAEB\x60\x82', 'ascii'));
expect(res.rawPayload).to.equal(new Buffer('D\xAEB\x60\x82', 'ascii'));
done();
});
});
Expand All @@ -1318,7 +1318,7 @@ describe('file', () => {
expect(res2.headers['content-length']).to.equal(5);
expect(res2.headers['content-range']).to.equal('bytes 42005-42009/42010');
expect(res2.headers['accept-ranges']).to.equal('bytes');
expect(res2.rawPayload).to.deep.equal(new Buffer('D\xAEB\x60\x82', 'ascii'));
expect(res2.rawPayload).to.equal(new Buffer('D\xAEB\x60\x82', 'ascii'));
done();
});
});
Expand Down Expand Up @@ -1424,7 +1424,7 @@ describe('file', () => {
expect(res.headers['content-length']).to.equal(4);
expect(res.headers['content-range']).to.equal('bytes 1-4/42010');
expect(res.headers['accept-ranges']).to.equal('bytes');
expect(res.rawPayload).to.deep.equal(new Buffer('PNG\r', 'ascii'));
expect(res.rawPayload).to.equal(new Buffer('PNG\r', 'ascii'));
expect(createOptions).to.include({ start: 1, end: 4 });
done();
});
Expand Down

0 comments on commit 37824f5

Please sign in to comment.