Update packages, fix test

This commit is contained in:
Jonathan Cremin 2016-06-02 19:23:39 +01:00
parent f59b9a5d22
commit 44860b0dcf
2 changed files with 30 additions and 30 deletions

View file

@ -26,11 +26,11 @@ describe('hostr-api file', function file() {
this.timeout(30000);
request
.post('/api/file')
.attach('file', path.join(__dirname, '..', 'fixtures', 'tall.jpg'))
.attach('file', path.join(__dirname, '..', 'fixtures', 'utah-arches.jpg'))
.auth('test@hostr.co', 'test-password')
.expect(201)
.expect((response) => {
assert(response.body.name === 'tall.jpg');
assert(response.body.name === 'utah-arches.jpg');
id = response.body.id;
})
.end(done);
@ -43,7 +43,7 @@ describe('hostr-api file', function file() {
.get('/api/file/' + id)
.expect(200)
.expect((response) => {
assert(response.body.name === 'tall.jpg');
assert(response.body.name === 'utah-arches.jpg');
})
.end(done);
});