From 3981e29545173dbbd0fd67db8058272e6bbca120 Mon Sep 17 00:00:00 2001 From: Sebastian Beltran Date: Tue, 18 Mar 2025 09:26:05 -0500 Subject: [PATCH] fix(tests): correct spelling of 'throw' in error messages --- test/res.redirect.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/res.redirect.js b/test/res.redirect.js index 045ead64..3295706d 100644 --- a/test/res.redirect.js +++ b/test/res.redirect.js @@ -19,7 +19,7 @@ describe('res', function(){ .expect(302, done) }) - it('should trown an error if the url is missing', function(done){ + it('should throw an error if the url is missing', function(done){ var app = express(); app.use(function (req, res) { @@ -31,7 +31,7 @@ describe('res', function(){ .expect(500, /url argument is required to res.redirect/, done) }) - it('should trown an error if the url is not a string', function(done){ + it('should throw an error if the url is not a string', function(done){ var app = express(); app.use(function (req, res) { @@ -43,7 +43,7 @@ describe('res', function(){ .expect(500, /res.redirect: url must be a string/, done) }) - it('should trown an error if the status is not a number', function(done){ + it('should throw an error if the status is not a number', function(done){ var app = express(); app.use(function (req, res) {