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

Function testFailure

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

Source from the content-addressed store, hash-verified

102 };
103
104 const testFailure = function(Type) {
105 Type.constructor.parse = _.noop();
106
107 expect(() => {
108 current.refreshTypes();
109 }).to.throw(`Parse function not supported for type ${Type.key} in dialect ${dialect}`);
110
111 delete Type.constructor.parse;
112 };
113
114 if (current.dialect.supports.JSON) {
115 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…