For example:
descibe("DecryptHash", function(){
describe("a nested hash", function(){
var hash = {
key1: {
key2: "value"
}
};
var crypted = new EncryptHash(hash, password).hash;
// doesnt exist, should be DecryptHash
var decrypted = new DecryptHashed(crypted, password).hash;
it("should be the same", function(){
expect(decrypted.key1.key2).toEqual(hash.key1.key2);
});
});
});
//and in another file
describe("aes"){
describe("encoding", function(){
it("should be true", function(){
expect(true).toEqual(true);
});
});
});
And the first file is loaded before the second, then aes gets nested
inside of the DecryptedHash part. I'm not sure if the above example will
work or not. If it doesn't I can send my real project and show the issue.
-Mike
toEqual(hash.key1.key2);
});
});