Skip to content

Commit 5831237

Browse files
2 parents 2a1b836 + 262bbe3 commit 5831237

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ Decorators and some other extras for sequelize (v3 + v4).
1919
- [`@ForeignKey`, `@BelongsTo`, `@HasMany`, `@HasOne`, `@BelongsToMany` API](#foreignkey-belongsto-hasmany-hasone-belongstomany-api)
2020
- [Generated getter and setter](#type-safe-usage-of-generated-getter-and-setter)
2121
- [Multiple relations of same models](#multiple-relations-of-same-models)
22-
- [Model valiation](#model-validation)
22+
- [Model validation](#model-validation)
2323
- [Scopes](#scopes)
2424
- [Why `() => Model`?](#user-content-why---model)
2525
- [Recommendations and limitations](#recommendations-and-limitations)
2626

2727
### Installation
2828
*sequelize-typescript* requires [sequelize](https://github.com/sequelize/sequelize)
2929
```
30-
npm install sequelize --save // v3
31-
npm install sequelize@4.0.0-1 --save // or v4
30+
npm install sequelize --save // v4
31+
npm install sequelize@3.30.4 --save // or v3
3232
```
3333
and [reflect-metadata](https://www.npmjs.com/package/reflect-metadata)
3434
```
@@ -153,7 +153,7 @@ Decorator | Description
153153
`@Unique` | sets `attribute.unique=true`
154154
`@Default(value: any)` | sets `attribute.defaultValue` to specified value
155155
`@PrimaryKey` | sets `attribute.primaryKey=true`
156-
Validate annotations | see [Model valiation](#model-validation)
156+
Validate annotations | see [Model validation](#model-validation)
157157

158158
### Type inference
159159
The following types can be automatically inferred from javascript type. Others have to be defined explicitly.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"build": "tsc --project lib/models/v4 && tsc",
77
"build-tests-es5": "tsc --project test",
88
"build-tests-es6": "tsc --project test --target es6 && tsc",
9-
"prepare-test-v3": "npm install [email protected].1 --no-save && npm run build-tests-es5",
10-
"prepare-test-v4": "npm install sequelize@4.0.0-1 --no-save && npm run build-tests-es6",
9+
"prepare-test-v3": "npm install [email protected].4 --no-save && npm run build-tests-es5",
10+
"prepare-test-v4": "npm install sequelize@4.1.0 --no-save && npm run build-tests-es6",
1111
"test-v3": "npm run prepare-test-v3 && npm run exec-tests",
1212
"test-v4": "npm run prepare-test-v4 && npm run exec-tests",
1313
"cover-v3": "npm run prepare-test-v3 && nyc --exclude lib/models/v4/**/*.js --all --require source-map-support/register mocha test/specs/",

test/specs/model.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,7 @@ describe('model', () => {
10071007
throw new Error('Update should throw an error if no where clause is given.');
10081008
}, (err) => {
10091009
expect(err).to.be.an.instanceof(Error);
1010-
expect(err.message).to.equal('Missing where attribute in the options parameter passed to update.');
1010+
expect(err.message).to.match(/^Missing where attribute in the options parameter/);
10111011
});
10121012
});
10131013

0 commit comments

Comments
 (0)