Skip to content

Commit

Permalink
fix: assert.fail -> assert.ok
Browse files Browse the repository at this point in the history
  • Loading branch information
AVVS committed Mar 11, 2016
1 parent d250ada commit fa82fdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/custom/cappasity-upload-pre.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = function extractMetadata(files, username) {

assert.equal(fileTypes['c-bin'], 1, 'must contain exactly one binary upload');
assert.equal(fileTypes['c-preview'], 1, 'must contain preview');
assert.fail(fileTypes['c-texture'], 1, 'must contain at least one texture', '>=');
assert.ok(fileTypes['c-texture'] >= 1, 'must contain at least one texture');
})
.then(() => amqp.publishAndWait(getMetadata, { username, audience }))
.get(audience)
Expand Down

0 comments on commit fa82fdc

Please sign in to comment.