Skip to content

Commit

Permalink
fix mongoose and express tests
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyasShabi committed Nov 25, 2024
1 parent b0eb132 commit 0959528
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const fs = require('fs')
const { NODE_MAJOR } = require('../../../../../../version')

describe('nosql injection detection in mongodb - whole feature', () => {
withVersions('express', 'express', '>4.18.0', expressVersion => {
withVersions('mongoose', 'express', '>4.18.0 <5.0.0', expressVersion => {
withVersions('mongoose', 'mongoose', '>4.0.0', mongooseVersion => {
const specificMongooseVersion = require(`../../../../../../versions/mongoose@${mongooseVersion}`).version()
if (NODE_MAJOR === 14 && semver.satisfies(specificMongooseVersion, '>=8')) return
Expand Down

0 comments on commit 0959528

Please sign in to comment.