From e92e27838aa14ec4906312612a56b3f581561c51 Mon Sep 17 00:00:00 2001 From: Rick Waldron Date: Sun, 19 Dec 2010 15:51:53 -0500 Subject: [PATCH] [#233] guid needs to be more unique; unit test revision --- test/popcorn.unit.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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); -- 2.43.0