|
|
@@ -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\./ );
|
|
|
} );
|
|
|
} );
|
|
|
|
|
|
@@ -84,8 +84,8 @@ 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/ );
|
|
|
+ setData( { invalid: 'document' } );
|
|
|
+ } ).to.throw( TypeError, /Document needs to be an instance of engine\.model\.Document\./ );
|
|
|
} );
|
|
|
} );
|
|
|
|