mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-09 06:43:24 +00:00
Update tests for ignore auto generated property
This commit is contained in:
@@ -54,18 +54,27 @@ describe("Ship Factory", function() {
|
|||||||
testShip.buildWith(buildA);
|
testShip.buildWith(buildA);
|
||||||
|
|
||||||
for(var p in testShip) {
|
for(var p in testShip) {
|
||||||
|
if (p == 'availCS') {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
expect(testShip[p]).toEqual(shipA[p], p + ' does not match');
|
expect(testShip[p]).toEqual(shipA[p], p + ' does not match');
|
||||||
}
|
}
|
||||||
|
|
||||||
testShip.buildWith(buildB);
|
testShip.buildWith(buildB);
|
||||||
|
|
||||||
for(var p in testShip) {
|
for(var p in testShip) {
|
||||||
|
if (p == 'availCS') {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
expect(testShip[p]).toEqual(shipB[p], p + ' does not match');
|
expect(testShip[p]).toEqual(shipB[p], p + ' does not match');
|
||||||
}
|
}
|
||||||
|
|
||||||
testShip.buildWith(buildA);
|
testShip.buildWith(buildA);
|
||||||
|
|
||||||
for(var p in testShip) {
|
for(var p in testShip) {
|
||||||
|
if (p == 'availCS') {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
expect(testShip[p]).toEqual(shipA[p], p + ' does not match');
|
expect(testShip[p]).toEqual(shipA[p], p + ' does not match');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -47,6 +47,9 @@ describe("Serializer Service", function() {
|
|||||||
testBuildB = Serializer.fromDetailedBuild(anacondaTestExport);
|
testBuildB = Serializer.fromDetailedBuild(anacondaTestExport);
|
||||||
|
|
||||||
for(var p in testBuildB) {
|
for(var p in testBuildB) {
|
||||||
|
if (p == 'availCS') {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
expect(testBuildB[p]).toEqual(testBuildA[p], p + ' does not match');
|
expect(testBuildB[p]).toEqual(testBuildA[p], p + ' does not match');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user