Fix libtextsecure tests

// FREEBIE
This commit is contained in:
lilia 2015-10-02 15:08:21 -07:00
parent 5bf608598c
commit 5eabfa2559
2 changed files with 6 additions and 5 deletions

View file

@ -59,7 +59,8 @@ describe("Key generation", function() {
* }
*/
before(function(done) {
generateKeys(count).then(function(res) {
var accountManager = new textsecure.AccountManager('');
accountManager.generateKeys(count).then(function(res) {
result = res;
}).then(done,done);
});
@ -94,7 +95,8 @@ describe("Key generation", function() {
describe('the second time', function() {
var result;
before(function(done) {
generateKeys(count).then(function(res) {
var accountManager = new textsecure.AccountManager('');
accountManager.generateKeys(count).then(function(res) {
result = res;
}).then(done,done);
});
@ -129,7 +131,8 @@ describe("Key generation", function() {
describe('the third time', function() {
var result;
before(function(done) {
generateKeys(count).then(function(res) {
var accountManager = new textsecure.AccountManager('');
accountManager.generateKeys(count).then(function(res) {
result = res;
}).then(done,done);
});

View file

@ -24,7 +24,6 @@
<script type="text/javascript" src="../libaxolotl.js"></script>
<script type="text/javascript" src="../axolotl_wrapper.js" data-cover></script>
<script type="text/javascript" src="../websocket.js" data-cover></script>
<script type="text/javascript" src="../websocket-resources.js" data-cover></script>
<script type="text/javascript" src="../helpers.js" data-cover></script>
<script type="text/javascript" src="../stringview.js" data-cover></script>
@ -40,7 +39,6 @@
<script type="text/javascript" src="device_storage_test.js"></script>
<script type="text/javascript" src="contacts_parser_test.js"></script>
<script type="text/javascript" src="generate_keys_test.js"></script>
<script type="text/javascript" src="websocket_test.js"></script>
<script type="text/javascript" src="websocket-resources_test.js"></script>
</body>
</html>