fix tests
This commit is contained in:
parent
d0b916fc3c
commit
bf46ff3c9d
|
@ -153,5 +153,5 @@ module.exports = function(grunt) {
|
||||||
});
|
});
|
||||||
|
|
||||||
// Test/Dev tasks
|
// Test/Dev tasks
|
||||||
grunt.registerTask('test', ['copy', 'mocha_phantomjs', 'mochaTest']);
|
grunt.registerTask('test', ['copy', 'mochaTest', 'mocha_phantomjs']);
|
||||||
};
|
};
|
||||||
|
|
|
@ -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.
|
Then take `dist/openpgp.min.js` to use in your project.
|
||||||
|
|
||||||
#Usage
|
#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
|
## 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).
|
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).
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'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,
|
var util = openpgp.util,
|
||||||
chai = require('chai'),
|
chai = require('chai'),
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'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,
|
var util = openpgp.util,
|
||||||
BFencrypt = openpgp.crypto.cipher.blowfish,
|
BFencrypt = openpgp.crypto.cipher.blowfish,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'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,
|
var util = openpgp.util,
|
||||||
chai = require('chai'),
|
chai = require('chai'),
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'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,
|
var util = openpgp.util,
|
||||||
chai = require('chai'),
|
chai = require('chai'),
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'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,
|
var util = openpgp.util,
|
||||||
chai = require('chai'),
|
chai = require('chai'),
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'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'),
|
var chai = require('chai'),
|
||||||
expect = chai.expect;
|
expect = chai.expect;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'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,
|
var util = openpgp.util,
|
||||||
MD5 = openpgp.crypto.hash.md5,
|
MD5 = openpgp.crypto.hash.md5,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'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,
|
var util = openpgp.util,
|
||||||
RMDstring = openpgp.crypto.hash.ripemd,
|
RMDstring = openpgp.crypto.hash.ripemd,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'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,
|
var util = openpgp.util,
|
||||||
hash = openpgp.crypto.hash,
|
hash = openpgp.crypto.hash,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'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'),
|
var chai = require('chai'),
|
||||||
expect = chai.expect;
|
expect = chai.expect;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'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'),
|
var chai = require('chai'),
|
||||||
expect = chai.expect;
|
expect = chai.expect;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'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(),
|
var keyring = new openpgp.Keyring(),
|
||||||
chai = require('chai'),
|
chai = require('chai'),
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'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'),
|
var chai = require('chai'),
|
||||||
expect = chai.expect;
|
expect = chai.expect;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'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'),
|
var chai = require('chai'),
|
||||||
expect = chai.expect;
|
expect = chai.expect;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user