diff --git a/test/test.js b/test/test.js index 5c1d2b8..f0a4a29 100644 --- a/test/test.js +++ b/test/test.js @@ -162,7 +162,7 @@ describe('contentDisposition(filename, options)', function () { }) it('should require a valid type', function () { - assert.throws(contentDisposition.bind(null, undefined, { type: 'invlaid;type' }), + assert.throws(contentDisposition.bind(null, undefined, { type: 'invalid;type' }), /invalid type/) }) @@ -369,7 +369,7 @@ describe('contentDisposition.parse(string)', function () { })) }) - it('should not be case-sensitive for charser', function () { + it('should not be case-sensitive for charset', function () { assert.ok(deepEqual(contentDisposition.parse('attachment; filename*=utf-8\'\'%E2%82%AC%20rates.pdf'), { type: 'attachment', parameters: { filename: '€ rates.pdf' }