@@ -10,17 +10,17 @@ describe("Matrix", () => {
1010 } ) ;
1111
1212 test ( "throws unnecessary nesting" , ( ) => {
13- expect ( Matrix . bind ( Matrix , [ [ 1 , 2 ] ] ) ) . toThrowError ( error ) ;
13+ expect ( Matrix . bind ( Matrix , [ [ 1 , 2 ] ] ) ) . toThrow ( error ) ;
1414 } ) ;
1515
1616 test ( "throws uneven rows" , ( ) => {
17- expect ( Matrix . bind ( Matrix , [ [ 1 , 2 ] , [ 3 ] , [ 4 , 5 ] ] ) ) . toThrowError ( error ) ;
17+ expect ( Matrix . bind ( Matrix , [ [ 1 , 2 ] , [ 3 ] , [ 4 , 5 ] ] ) ) . toThrow ( error ) ;
1818 } ) ;
1919
2020 test ( "does not throw number array" , ( ) => {
2121 expect (
2222 Matrix . bind < typeof Matrix , [ x : number [ ] ] , [ ] , Matrix1D > ( Matrix , [ 1 ] )
23- ) . not . toThrowError ( error ) ;
23+ ) . not . toThrow ( error ) ;
2424 } ) ;
2525
2626 test ( "does not throw 2D number array" , ( ) => {
@@ -29,7 +29,7 @@ describe("Matrix", () => {
2929 [ 1 ] ,
3030 [ 2 ] ,
3131 ] )
32- ) . not . toThrowError ( error ) ;
32+ ) . not . toThrow ( error ) ;
3333 } ) ;
3434} ) ;
3535
@@ -140,7 +140,7 @@ describe("Matrix.add", () => {
140140 [ 4 , 5 , 6 ] ,
141141 ] )
142142 )
143- ) . toThrowError ( new TypeError ( "Matrices are not addable" ) ) ;
143+ ) . toThrow ( new TypeError ( "Matrices are not addable" ) ) ;
144144 } ) ;
145145
146146 test ( "add" , ( ) => {
@@ -179,7 +179,7 @@ describe("Matrix#add", () => {
179179 [ 4 , 5 , 6 ] ,
180180 ] )
181181 )
182- ) . toThrowError ( new TypeError ( "Matrices are not addable" ) ) ;
182+ ) . toThrow ( new TypeError ( "Matrices are not addable" ) ) ;
183183 } ) ;
184184
185185 test ( "add" , ( ) => {
@@ -276,7 +276,7 @@ describe("Matrix.multiply", () => {
276276 [ 3 , 4 ] ,
277277 ] )
278278 )
279- ) . toThrowError ( new TypeError ( "Matrices are not multipliable" ) ) ;
279+ ) . toThrow ( new TypeError ( "Matrices are not multipliable" ) ) ;
280280 } ) ;
281281
282282 test ( "multiply A (1x1) and B (1x1)" , ( ) => {
@@ -345,7 +345,7 @@ describe("Matrix#multiply", () => {
345345 [ 3 , 4 ] ,
346346 ] )
347347 )
348- ) . toThrowError ( new TypeError ( "Matrices are not multipliable" ) ) ;
348+ ) . toThrow ( new TypeError ( "Matrices are not multipliable" ) ) ;
349349 } ) ;
350350
351351 test ( "multiply A (1x1) and B (1x1)" , ( ) => {
0 commit comments