From: Rick Waldron Date: Sun, 19 Dec 2010 20:51:53 +0000 (-0500) Subject: [#233] guid needs to be more unique; unit test revision X-Git-Tag: v0.2~34^2~3^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=e92e27838aa14ec4906312612a56b3f581561c51;p=popcorn-js.git [#233] guid needs to be more unique; unit test revision --- diff --git a/test/popcorn.unit.js b/test/popcorn.unit.js index ad47641..0adcf98 100644 --- a/test/popcorn.unit.js +++ b/test/popcorn.unit.js @@ -58,7 +58,7 @@ test("Utility", function () { test("guid", function () { - expect(10); + expect(6); var count = 3, guids = [], @@ -68,10 +68,10 @@ test("guid", function () { temp = Popcorn.guid(); - ok( temp, "Popcorn.guid() returns value" ); - if ( i > 0 ) { notEqual( temp, guids[ guids.length - 1 ], "Current guid does not equal last guid" ); + } else { + ok( temp, "Popcorn.guid() returns value" ); } guids.push(temp); @@ -83,10 +83,10 @@ test("guid", function () { temp = Popcorn.guid( "pre" ); - ok( temp, "Popcorn.guid( 'pre' ) returns value" ); - if ( i > 0 ) { notEqual( temp, guids[ guids.length - 1 ], "Current guid does not equal last guid" ); + } else { + ok( temp, "Popcorn.guid( 'pre' ) returns value" ); } guids.push(temp);