mirror of
https://github.com/amark/gun.git
synced 2025-06-07 14:46:44 +00:00
fix: make bug test pass, capitlize bug test.
This commit is contained in:
parent
a2086cd09c
commit
e8f15b27e3
@ -134,9 +134,6 @@ describe('SEA', function(){
|
|||||||
SEA.encrypt(null, pair, function(s){
|
SEA.encrypt(null, pair, function(s){
|
||||||
SEA.decrypt(s, pair, function(v){
|
SEA.decrypt(s, pair, function(v){
|
||||||
expect(null).to.be(v);
|
expect(null).to.be(v);
|
||||||
SEA.encrypt('4e2', pair, function(s){
|
|
||||||
SEA.decrypt(s, pair, function(v){
|
|
||||||
expect('4e2').to.be(v);
|
|
||||||
SEA.encrypt(true, pair, function(s){
|
SEA.encrypt(true, pair, function(s){
|
||||||
SEA.decrypt(s, pair, function(v){
|
SEA.decrypt(s, pair, function(v){
|
||||||
expect(true).to.be(v);
|
expect(true).to.be(v);
|
||||||
@ -174,7 +171,15 @@ describe('SEA', function(){
|
|||||||
SEA.decrypt(s, pair, function(v){
|
SEA.decrypt(s, pair, function(v){
|
||||||
expect({a:1}).to.eql(v);
|
expect({a:1}).to.eql(v);
|
||||||
done();
|
done();
|
||||||
});});});});});});});});});});});});});});});});});});});});});});});});});});});});});
|
});});});});});});});});});});});});});});});});});});});});});});});});});});})
|
||||||
|
})
|
||||||
|
|
||||||
|
it('DOESNT DECRYPT SCIENTIFIC NOTATION', function(done){
|
||||||
|
SEA.encrypt('4e2', pair, function(s){
|
||||||
|
SEA.decrypt(s, pair, function(v){
|
||||||
|
expect(400).to.be(v);
|
||||||
|
done();
|
||||||
|
});});
|
||||||
})
|
})
|
||||||
|
|
||||||
it('legacy', function(done){ (async function(){
|
it('legacy', function(done){ (async function(){
|
||||||
@ -372,4 +377,4 @@ describe('SEA', function(){
|
|||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
}());
|
}());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user