-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE!: Upgrade to Sequelize 6
The breakage comes from following Sequelize's lead and requiring a minimum node version of 10 and switching out Bluebird for native promises.
- Loading branch information
Showing
13 changed files
with
200 additions
and
592 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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
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 |
---|---|---|
|
@@ -5,7 +5,6 @@ import {useFakeTimers, stub, spy} from 'sinon'; | |
import * as sinonChai from 'sinon-chai'; | ||
import * as _ from 'lodash'; | ||
import * as moment from 'moment'; | ||
import * as Promise from 'bluebird'; | ||
import {Op, UniqueConstraintError} from 'sequelize'; | ||
import * as chaiAsPromised from 'chai-as-promised'; | ||
import {createSequelize} from "../utils/sequelize"; | ||
|
@@ -453,7 +452,7 @@ describe('model', () => { | |
return Promise.all([ | ||
User.create({username: 'tobi', email: '[email protected]'}), | ||
User.create({username: 'tobi', email: '[email protected]'})]); | ||
}).catch(UniqueConstraintError, (err) => { | ||
}).catch((err) => { | ||
expect(err.message).to.equal('User and email must be unique'); | ||
}); | ||
}); | ||
|
@@ -509,7 +508,7 @@ describe('model', () => { | |
return Promise.all([ | ||
User.create({userId: 1, email: '[email protected]'}), | ||
User.create({userId: 1, email: '[email protected]'})]); | ||
}).catch(UniqueConstraintError, (err) => { | ||
}).catch((err) => { | ||
expect(err.message).to.equal('User and email must be unique'); | ||
}); | ||
}); | ||
|