|
|
@@ -51,7 +51,7 @@ describe( 'model test utils', () => {
|
|
|
it( 'should throw an error when passing invalid document', () => {
|
|
|
expect( () => {
|
|
|
getData( { invalid: 'document' } );
|
|
|
- } ).to.throw( TypeError, /Document needs to be an instance of engine\.model\.Document\./ );
|
|
|
+ } ).to.throw( TypeError, 'Document needs to be an instance of engine.model.Document.' );
|
|
|
} );
|
|
|
} );
|
|
|
|
|
|
@@ -85,7 +85,7 @@ describe( 'model test utils', () => {
|
|
|
it( 'should throw an error when passing invalid document', () => {
|
|
|
expect( () => {
|
|
|
setData( { invalid: 'document' } );
|
|
|
- } ).to.throw( TypeError, /Document needs to be an instance of engine\.model\.Document\./ );
|
|
|
+ } ).to.throw( TypeError, 'Document needs to be an instance of engine.model.Document.' );
|
|
|
} );
|
|
|
} );
|
|
|
|