MCPcopy
hub / github.com/sequelize/sequelize / assertDataType

Function assertDataType

test/unit/model/getAttributes.test.js:10–12  ·  view source on GitHub ↗
(property, dataType)

Source from the content-addressed store, hash-verified

8const DataTypes = require('sequelize/lib/data-types');
9
10function assertDataType(property, dataType) {
11 expect(property.type.constructor.key).to.equal(dataType.key);
12}
13
14describe(Support.getTestDialectTeaser('Model'), () => {
15 describe('getAttributes', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected