fix tests

This commit is contained in:
Tankred Hase 2014-01-10 20:46:31 +01:00
parent d0b916fc3c
commit bf46ff3c9d
16 changed files with 17 additions and 16 deletions

View File

@ -153,5 +153,5 @@ module.exports = function(grunt) {
});
// Test/Dev tasks
grunt.registerTask('test', ['copy', 'mocha_phantomjs', 'mochaTest']);
grunt.registerTask('test', ['copy', 'mochaTest', 'mocha_phantomjs']);
};

View File

@ -21,7 +21,8 @@ You can download a prebuilt minified version of the library under [releases](htt
Then take `dist/openpgp.min.js` to use in your project.
#Usage
It's best the check the documentation for detailed API information. There are also alot of useful examples under 'test/'.
It's best the check the documentation for detailed API information. There are also alot of useful examples under 'test/'. You can run the tests by calling:
npm install && npm test
## Documentation
A jsdoc build of our code comments is available at [doc/index.html](doc/index.html). Public calls should generally be made through the OpenPGP object [doc/openpgp.html](doc/openpgp.html).

View File

@ -1,6 +1,6 @@
'use strict';
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('openpgp');
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('../../../src/index');
var util = openpgp.util,
chai = require('chai'),

View File

@ -1,6 +1,6 @@
'use strict';
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('openpgp');
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('../../../src/index');
var util = openpgp.util,
BFencrypt = openpgp.crypto.cipher.blowfish,

View File

@ -1,6 +1,6 @@
'use strict';
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('openpgp');
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('../../../src/index');
var util = openpgp.util,
chai = require('chai'),

View File

@ -1,6 +1,6 @@
'use strict';
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('openpgp');
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('../../../src/index');
var util = openpgp.util,
chai = require('chai'),

View File

@ -1,6 +1,6 @@
'use strict';
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('openpgp');
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('../../../src/index');
var util = openpgp.util,
chai = require('chai'),

View File

@ -1,6 +1,6 @@
'use strict';
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('openpgp');
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('../../src/index');
var chai = require('chai'),
expect = chai.expect;

View File

@ -1,6 +1,6 @@
'use strict';
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('openpgp');
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('../../../src/index');
var util = openpgp.util,
MD5 = openpgp.crypto.hash.md5,

View File

@ -1,6 +1,6 @@
'use strict';
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('openpgp');
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('../../../src/index');
var util = openpgp.util,
RMDstring = openpgp.crypto.hash.ripemd,

View File

@ -1,6 +1,6 @@
'use strict';
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('openpgp');
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('../../../src/index');
var util = openpgp.util,
hash = openpgp.crypto.hash,

View File

@ -1,6 +1,6 @@
'use strict';
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('openpgp');
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('../../src/index');
var chai = require('chai'),
expect = chai.expect;

View File

@ -1,6 +1,6 @@
'use strict';
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('openpgp');
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('../../src/index');
var chai = require('chai'),
expect = chai.expect;

View File

@ -1,6 +1,6 @@
'use strict';
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('openpgp');
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('../../src/index');
var keyring = new openpgp.Keyring(),
chai = require('chai'),

View File

@ -1,6 +1,6 @@
'use strict';
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('openpgp');
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('../../src/index');
var chai = require('chai'),
expect = chai.expect;

View File

@ -1,6 +1,6 @@
'use strict';
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('openpgp');
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('../../src/index');
var chai = require('chai'),
expect = chai.expect;