From 14268509fc460b4ef59d6645a928418cb189def5 Mon Sep 17 00:00:00 2001 From: Attila Domokos Date: Thu, 7 Jun 2012 22:43:53 -0400 Subject: [PATCH 1/2] Adding the file extenions to the path in Makefile --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index b31b9a79c0..d715d9c1d4 100644 --- a/Makefile +++ b/Makefile @@ -52,37 +52,37 @@ test-bdd: @./bin/mocha \ --reporter $(REPORTER) \ --ui bdd \ - test/acceptance/interfaces/bdd + test/acceptance/interfaces/bdd.js test-tdd: @./bin/mocha \ --reporter $(REPORTER) \ --ui tdd \ - test/acceptance/interfaces/tdd + test/acceptance/interfaces/tdd.js test-qunit: @./bin/mocha \ --reporter $(REPORTER) \ --ui qunit \ - test/acceptance/interfaces/qunit + test/acceptance/interfaces/qunit.js test-exports: @./bin/mocha \ --reporter $(REPORTER) \ --ui exports \ - test/acceptance/interfaces/exports + test/acceptance/interfaces/exports.js test-grep: @./bin/mocha \ --reporter $(REPORTER) \ --grep fast \ - test/acceptance/misc/grep + test/acceptance/misc/grep.js test-bail: @./bin/mocha \ --reporter $(REPORTER) \ --bail \ - test/acceptance/misc/bail + test/acceptance/misc/bail.js non-tty: @./bin/mocha \ From 2702cb27e1dcf83fa369c9d93862f88642c2b78e Mon Sep 17 00:00:00 2001 From: Attila Domokos Date: Thu, 7 Jun 2012 23:00:31 -0400 Subject: [PATCH 2/2] Cleaning up white space --- test/acceptance/interfaces/tdd.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/acceptance/interfaces/tdd.js b/test/acceptance/interfaces/tdd.js index d63f500ba6..9547db8fe6 100644 --- a/test/acceptance/interfaces/tdd.js +++ b/test/acceptance/interfaces/tdd.js @@ -1,4 +1,3 @@ - suite('Array', function(){ suite('#indexOf()', function(){ var initialValue = 32; @@ -14,9 +13,9 @@ suite('Array', function(){ [1,2,3].indexOf(5).should.equal(-1); [1,2,3].indexOf(0).should.equal(-1); }) - + test('should return the correct index when the value is present', function(){ - initialValue.should.eql(42); + initialValue.should.eql(42); [1,2,3].indexOf(1).should.equal(0); [1,2,3].indexOf(2).should.equal(1); [1,2,3].indexOf(3).should.equal(2);