diff --git a/Makefile b/Makefile index 945013b5..05f8ff42 100644 --- a/Makefile +++ b/Makefile @@ -33,6 +33,8 @@ lint: bundle: @browserify -r ./src/:openpgp > ./resources/openpgp.js @browserify -d -r ./src/:openpgp > ./resources/openpgp.debug.js + @browserify -x openpgp -r ./src/keyring/:keyring > ./resources/keyring.js + @browserify -d -x openpgp -r ./src/keyring/:keyring > ./resources/keyring.debug.js bundle-test: @browserify -d -r ./test/test-all.js:unittests > ./test/lib/test-bundle.js diff --git a/test/ci-quick.js b/test/ci-quick.js index 2d17e633..ce67c2fb 100644 --- a/test/ci-quick.js +++ b/test/ci-quick.js @@ -77,16 +77,16 @@ describe('Openpgp integration tests', function() { expect(key).to.be.empty; done(); }); - it('getPrivateKeyForAddress() - unknown address', function(done) { - var key = keyring.getPrivateKeyForAddress('nobody@example.com'); - expect(key).to.be.empty; - done(); - }); it('getPublicKeyForAddress() - valid address', function(done) { var key = keyring.getPublicKeyForAddress(user); expect(key).to.exist; done(); }); + it('getPrivateKeyForAddress() - unknown address', function(done) { + var key = keyring.getPrivateKeyForAddress('nobody@example.com'); + expect(key).to.be.empty; + done(); + }); it('getPrivateKeyForAddress() - valid address', function(done) { var key = keyring.getPrivateKeyForAddress(user); expect(key).to.exist;