MCPcopy
hub / github.com/sequelize/sequelize / testFailure

Function testFailure

test/integration/data-types.test.js:122–130  ·  view source on GitHub ↗
(Type)

Source from the content-addressed store, hash-verified

120 };
121
122 const testFailure = function(Type) {
123 Type.constructor.parse = _.noop();
124
125 expect(() => {
126 current.refreshTypes();
127 }).to.throw(`Parse function not supported for type ${Type.key} in dialect ${dialect}`);
128
129 delete Type.constructor.parse;
130 };
131
132 if (current.dialect.supports.JSON) {
133 it('calls parse and stringify for JSON', async () => {

Callers 1

data-types.test.jsFile · 0.85

Calls 1

refreshTypesMethod · 0.80

Tested by

no test coverage detected