From 4d84f271be8b6136bd7fb5b3d0643f929d371068 Mon Sep 17 00:00:00 2001 From: Colin McLeod Date: Tue, 6 Oct 2015 20:04:58 -0700 Subject: [PATCH] Update tests for ignore auto generated property --- test/tests/test-factory-ship.js | 9 +++++++++ test/tests/test-service-serializer.js | 3 +++ 2 files changed, 12 insertions(+) diff --git a/test/tests/test-factory-ship.js b/test/tests/test-factory-ship.js index 45ac0124..fe313f84 100644 --- a/test/tests/test-factory-ship.js +++ b/test/tests/test-factory-ship.js @@ -54,18 +54,27 @@ describe("Ship Factory", function() { testShip.buildWith(buildA); for(var p in testShip) { + if (p == 'availCS') { + continue; + } expect(testShip[p]).toEqual(shipA[p], p + ' does not match'); } testShip.buildWith(buildB); for(var p in testShip) { + if (p == 'availCS') { + continue; + } expect(testShip[p]).toEqual(shipB[p], p + ' does not match'); } testShip.buildWith(buildA); for(var p in testShip) { + if (p == 'availCS') { + continue; + } expect(testShip[p]).toEqual(shipA[p], p + ' does not match'); } }); diff --git a/test/tests/test-service-serializer.js b/test/tests/test-service-serializer.js index 1fe8b1ab..bc3e5175 100644 --- a/test/tests/test-service-serializer.js +++ b/test/tests/test-service-serializer.js @@ -47,6 +47,9 @@ describe("Serializer Service", function() { testBuildB = Serializer.fromDetailedBuild(anacondaTestExport); for(var p in testBuildB) { + if (p == 'availCS') { + continue; + } expect(testBuildB[p]).toEqual(testBuildA[p], p + ' does not match'); }