diff --git a/__tests__/test-import.js b/__tests__/test-import.js index 4bd3595d..27aa9a4c 100644 --- a/__tests__/test-import.js +++ b/__tests__/test-import.js @@ -108,7 +108,8 @@ describe('Import Modal', function() { it('catches an invalid backup', function() { const importData = require('./fixtures/valid-backup'); let invalidImportData = Object.assign({}, importData); - invalidImportData.builds.asp = null; // Remove Asp Miner build used in comparison + //invalidImportData.builds.asp = null; // Remove Asp Miner build used in comparison + delete(invalidImportData.builds.asp); pasteText('"this is not valid"'); expect(modal.state.importValid).toBeFalsy(); diff --git a/__tests__/test-ship.js b/__tests__/test-ship.js index e32def5c..00ef39cc 100644 --- a/__tests__/test-ship.js +++ b/__tests__/test-ship.js @@ -16,7 +16,7 @@ describe("Ship", function() { ship.buildWith(shipData.defaults); expect(ship.totalCost).toEqual(shipData.retailCost, s + ' retail cost does not match default build cost'); - expect(ship.cargoCapacity).toBeDefined(s + ' cargo'); + expect(ship.cargoCapacity).toBeDefined(); expect(ship.priorityBands[0].retracted).toBeGreaterThan(0, s + ' priorityBands'); expect(ship.powerAvailable).toBeGreaterThan(0, s + ' powerAvailable'); expect(ship.unladenRange).toBeGreaterThan(0, s + ' unladenRange'); diff --git a/package.json b/package.json index 877ae195..4c12a8b1 100644 --- a/package.json +++ b/package.json @@ -24,14 +24,13 @@ }, "jest": { "scriptPreprocessor": "/node_modules/babel-jest", - "testFileExtensions": [ - "js" - ], + "testRegex": "(/__tests__/test-.*|\\.(test|spec))\\.js$", "moduleFileExtensions": [ "js", "json", "jsx" ], + "automock": true, "unmockedModulePathPatterns": [ "/node_modules/react", "/node_modules/react-dom", @@ -68,7 +67,7 @@ "extract-text-webpack-plugin": "^0.9.1", "file-loader": "^0.8.4", "html-webpack-plugin": "^1.7.0", - "jest-cli": "^0.9.2", + "jest-cli": "^16.0.1", "jsen": "^0.6.0", "json-loader": "^0.5.3", "less": "^2.5.3",