File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ describe('translate:translate', function () {
6969 } ) ;
7070
7171 it ( 'should handle error' , function ( ) {
72- var error = 'error' ;
72+ var error = new Error ( 'error' ) ;
7373 var sample = getSample ( ) ;
7474 var callback = sinon . stub ( ) ;
7575 sample . mocks . translate . detect = sinon . stub ( ) . callsArgWith ( 1 , error ) ;
@@ -100,7 +100,7 @@ describe('translate:translate', function () {
100100 } ) ;
101101
102102 it ( 'should handle error' , function ( ) {
103- var error = 'error' ;
103+ var error = new Error ( 'error' ) ;
104104 var sample = getSample ( ) ;
105105 var callback = sinon . stub ( ) ;
106106 sample . mocks . translate . getLanguages = sinon . stub ( ) . callsArgWith ( 0 , error ) ;
@@ -141,7 +141,7 @@ describe('translate:translate', function () {
141141 } ) ;
142142
143143 it ( 'should handle error' , function ( ) {
144- var error = 'error' ;
144+ var error = new Error ( 'error' ) ;
145145 var sample = getSample ( ) ;
146146 var callback = sinon . stub ( ) ;
147147 var options = {
You can’t perform that action at this time.
0 commit comments