var assert = require('assert');
var WebCrypto = require("../src/webcrypto.js").default;
var config = require("./config.js")

describe("test", function () {
    var webcrypto;

    before(function () {
    })

    after(function () {
    })

    it("generate RSA PKCS1 1.5", function () {
		webcrypto = new WebCrypto(config);
        
		webcrypto.subtle.generateKey({
            name:"RSASSA-PKCS1-v1_5",
            modulusLength: 1024,
            publicExponent: new Uint8Array([1, 0, 1]), 
            hash: {
                name: "SHA-1"
            }}, 
            false, 
            ["sign", "verify"]
        )
        .then(function(k){
            console.log(k);
        })
        .catch(function(e){
            console.error('Error:', e.message, e.stack);
        })
    })
})
@@ -273,24 +273,28 @@
 , function (
+done
 ) %7B%0A%09%09webcry
@@ -662,130 +662,185 @@
     
-console.log(k);%0A        %7D)%0A        .catch(function(e)%7B%0A            console.error('Error:', e.message, e.stack);%0A        %7D)
+assert.equal(k.privateKey !== null, true, %22Has no private key%22);%0A            assert.equal(k.publicKey !== null, true, %22Has no public key%22);%0A        %7D)%0A        .then(done, done);
 %0A   

Change test