Created
February 20, 2014 11:32
-
-
Save imsickofmaps/9111647 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
beforeEach(function () { | |
tester = new vumigo.test_utils.ImTester(app.api, { | |
custom_setup: function (api) { | |
api.config_store.config = JSON.stringify({ | |
user_store: "oneorg_ussd_dev", | |
metric_store: "oneorg_ussd_dev", | |
default_lang: "en_za" | |
}); | |
fixtures.forEach(function (f) { | |
api.load_http_fixture(f); | |
}); | |
}, | |
async: true | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) DoAgricUSSD when using the app in ZA should show the opening menu: | |
TypeError: Cannot read property 'current_state' of null | |
at check_result (/Users/mikej/Documents/code/vumi-jssandbox-toolkit/lib/test_utils.js:142:41) | |
at processImmediate [as _immediateCallback] (timers.js:317:15) | |
From previous event: | |
at ImTester.self.check_state (/Users/mikej/Documents/code/vumi-jssandbox-toolkit/lib/test_utils.js:172:22) | |
at Context.<anonymous> (/Users/mikej/Documents/code/oneorg/go-js/test/test_doagricussd.js:38:14) | |
at Test.Runnable.run (/Users/mikej/Documents/code/oneorg/go-js/node_modules/mocha/lib/runnable.js:196:15) | |
at Runner.runTest (/Users/mikej/Documents/code/oneorg/go-js/node_modules/mocha/lib/runner.js:343:10) | |
at /Users/mikej/Documents/code/oneorg/go-js/node_modules/mocha/lib/runner.js:389:12 | |
at next (/Users/mikej/Documents/code/oneorg/go-js/node_modules/mocha/lib/runner.js:269:14) | |
at /Users/mikej/Documents/code/oneorg/go-js/node_modules/mocha/lib/runner.js:278:7 | |
at next (/Users/mikej/Documents/code/oneorg/go-js/node_modules/mocha/lib/runner.js:226:23) | |
at /Users/mikej/Documents/code/oneorg/go-js/node_modules/mocha/lib/runner.js:241:7 | |
at Hook.Runnable.run (/Users/mikej/Documents/code/oneorg/go-js/node_modules/mocha/lib/runnable.js:215:5) | |
at next (/Users/mikej/Documents/code/oneorg/go-js/node_modules/mocha/lib/runner.js:235:10) | |
at /Users/mikej/Documents/code/oneorg/go-js/node_modules/mocha/lib/runner.js:246:5 | |
at node.js:901:3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
beforeEach(function () { | |
tester = new vumigo.test_utils.ImTester(app.api, { | |
custom_setup: function (api) { | |
// api.config_store.config = JSON.stringify({ | |
// user_store: "oneorg_ussd_dev", | |
// metric_store: "oneorg_ussd_dev", | |
// default_lang: "en_za" | |
// }); | |
fixtures.forEach(function (f) { | |
api.load_http_fixture(f); | |
}); | |
}, | |
async: true | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment