Skip to content

Commit

Permalink
release: v1.6.5
Browse files Browse the repository at this point in the history
  • Loading branch information
cyjake committed Jul 16, 2021
1 parent 77c3ba4 commit dc2835d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions History.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
1.6.5 / 2021-07-16
==================

* fix: define assign Bone.models #140

1.6.4 / 2021-07-16
==================

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "leoric",
"version": "1.6.4",
"version": "1.6.5",
"description": "JavaScript Object-relational mapping alchemy",
"main": "index.js",
"types": "types/index.d.ts",
Expand Down
6 changes: 4 additions & 2 deletions test/unit/realm.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,7 @@ describe('=> Realm', () => {
port: process.env.MYSQL_PORT,
user: 'root',
database: 'leoric',
Bone: class extends Bone {},
});

const User = realm.define('User', {
Expand Down Expand Up @@ -583,6 +584,7 @@ describe('=> Realm', () => {
});

assert(realm.Bone.models.User);
})
})
assert(realm.Bone.models.User === User);
});
});
});

0 comments on commit dc2835d

Please sign in to comment.