@@ -9,23 +9,23 @@ var Utils = require('../src/utils.js').Utils;
99describe ( 'Cli' , function ( ) {
1010 describe ( 'getInput' , function ( ) {
1111 it ( 'should readFile when inputType is `file`' , function ( ) {
12- let spy = sinon . stub ( Utils , 'readFile' ) ;
12+ var spy = sinon . stub ( Utils , 'readFile' ) ;
1313 Cli . getInput ( 'file' , [ 'lol' , 'foo' ] , 'ignore' , 'callback' ) ;
1414 assert ( spy . calledOnce ) ;
1515 assert ( spy . calledWith ( 'lol' , 'callback' ) ) ;
1616 spy . restore ( ) ;
1717 } ) ;
1818
1919 it ( 'should readStdin when inputType is `stdin`' , function ( ) {
20- let spy = sinon . stub ( Utils , 'readStdin' ) ;
20+ var spy = sinon . stub ( Utils , 'readStdin' ) ;
2121 Cli . getInput ( 'stdin' , [ 'lol' ] , 'ignore' , 'callback' ) ;
2222 assert ( spy . calledOnce ) ;
2323 assert ( spy . calledWith ( 'callback' ) ) ;
2424 spy . restore ( ) ;
2525 } ) ;
2626
2727 it ( 'should _runGitDiff by default' , function ( ) {
28- let spy = sinon . stub ( Cli , '_runGitDiff' ) ;
28+ var spy = sinon . stub ( Cli , '_runGitDiff' ) ;
2929 Cli . getInput ( 'abc' , [ 'lol' , 'foo' ] , 'ignore' , 'callback' ) ;
3030 assert ( spy . calledOnce ) ;
3131 assert ( spy . calledWith ( [ 'lol' , 'foo' ] , 'ignore' , 'callback' ) ) ;
@@ -34,7 +34,7 @@ describe('Cli', function() {
3434
3535 describe ( 'preview' , function ( ) {
3636 it ( 'should call `utils.writeFile`' , function ( ) {
37- let spy = sinon . stub ( Utils , 'writeFile' ) ;
37+ var spy = sinon . stub ( Utils , 'writeFile' ) ;
3838 Cli . preview ( 'a' , 'b' ) ;
3939 assert ( spy . calledOnce ) ;
4040 spy . restore ( ) ;
@@ -43,7 +43,7 @@ describe('Cli', function() {
4343
4444 describe ( 'postToDiffy' , function ( ) {
4545 it ( 'should call `http.post`' , function ( ) {
46- let spy = sinon . stub ( http , 'post' ) ;
46+ var spy = sinon . stub ( http , 'post' ) ;
4747 Cli . postToDiffy ( 'a' , 'b' , 'callback' ) ;
4848 assert ( spy . calledOnce ) ;
4949 assert ( spy . calledWith ( 'http://diffy.org/api/new' , { udiff : 'a' } ) ) ;
0 commit comments