-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump chai from 4.3.10 to 5.0.0 (#1796)
* Bump chai from 4.3.10 to 5.0.0 Bumps [chai](https://github.com/chaijs/chai) from 4.3.10 to 5.0.0. - [Release notes](https://github.com/chaijs/chai/releases) - [Changelog](https://github.com/chaijs/chai/blob/main/History.md) - [Commits](chaijs/chai@v4.3.10...v5.0.0) --- updated-dependencies: - dependency-name: chai dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * Refactored code to work with chai 5 * Reverted mongo version update pending mongo 6 upgrade work --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Andrew Brazzatti <[email protected]>
- Loading branch information
1 parent
0834bd4
commit fa07b30
Showing
10 changed files
with
72 additions
and
97 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,57 @@ | ||
var sails = require('sails'); | ||
var _ = require('lodash'); | ||
|
||
|
||
global.chai = require('chai'); | ||
global.should = chai.should(); | ||
global.expect = chai.expect; | ||
global.moment = require('moment'); | ||
|
||
|
||
|
||
before(function (done) { | ||
// Increase the Mocha timeout so that Sails has enough time to lift. | ||
this.timeout(120000); | ||
sails.lift({ | ||
log: { | ||
level: 'verbose' | ||
}, | ||
hooks: { | ||
grunt: false | ||
}, | ||
models: { | ||
datastore: 'mongodb', | ||
migrate: 'drop' | ||
}, | ||
security: { | ||
csrf: false | ||
}, | ||
datacite: { | ||
import('chai').then(chai => { | ||
global.chai = chai; | ||
global.should = chai.should(); | ||
global.expect = chai.expect; | ||
|
||
// Increase the Mocha timeout so that Sails has enough time to lift. | ||
this.timeout(120000); | ||
sails.lift({ | ||
log: { | ||
level: 'verbose' | ||
}, | ||
hooks: { | ||
grunt: false | ||
}, | ||
models: { | ||
datastore: 'mongodb', | ||
migrate: 'drop' | ||
}, | ||
security: { | ||
csrf: false | ||
}, | ||
datacite: { | ||
username: process.env.datacite_username, | ||
password: process.env.datacite_password, | ||
doiPrefix: process.env.datacite_doiPrefix | ||
}, | ||
auth: { | ||
default: { | ||
local: { | ||
default: { | ||
token: 'jA8mF8CBpwHGkJqlgg6dT3hEDoZTQIif5t1V9ElIcN8=' | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
auth: { | ||
default: { | ||
local: { | ||
default: { | ||
token: 'jA8mF8CBpwHGkJqlgg6dT3hEDoZTQIif5t1V9ElIcN8=' | ||
} | ||
} | ||
} | ||
} | ||
}, function (err, server) { | ||
if (err) return done(err); | ||
done(err, sails); | ||
if (err) return done(err); | ||
done(err, sails); | ||
}); | ||
}); | ||
|
||
|
||
}); | ||
|
||
after(function (done) { | ||
// here you can clear fixtures, etc. | ||
if (sails && _.isFunction(sails.lower)) { | ||
sails.lower(done); | ||
sails.lower(done); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
const { expect } = require("chai"); | ||
|
||
describe('The Agenda Queue Service', function () { | ||
before(function (done) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
const { | ||
expect | ||
} = require("chai"); | ||
|
||
describe('The DOI Service', function () { | ||
before(function (done) { | ||
done(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
const { expect } = require("chai"); | ||
|
||
|
||
describe('The FormsService', function () { | ||
before(function (done) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
const { | ||
expect | ||
} = require("chai"); | ||
|
||
|
||
describe('The Reporting Service', function () { | ||
before(function (done) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters