fix(tests): correct spelling of 'throw' in error messages

This commit is contained in:
Sebastian Beltran
2025-03-18 09:26:05 -05:00
parent f636741bf8
commit 3981e29545

View File

@@ -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) {