From e8f15b27e303f183f79dc4bb4755d1ec03c8c3dd Mon Sep 17 00:00:00 2001 From: sirpy Date: Mon, 4 Nov 2019 12:34:03 +0200 Subject: [PATCH] fix: make bug test pass, capitlize bug test. --- test/sea/sea.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/test/sea/sea.js b/test/sea/sea.js index f4d1cbea..8294b067 100644 --- a/test/sea/sea.js +++ b/test/sea/sea.js @@ -134,9 +134,6 @@ describe('SEA', function(){ SEA.encrypt(null, pair, function(s){ SEA.decrypt(s, pair, function(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.decrypt(s, pair, function(v){ expect(true).to.be(v); @@ -174,7 +171,15 @@ describe('SEA', function(){ SEA.decrypt(s, pair, function(v){ expect({a:1}).to.eql(v); 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(){ @@ -372,4 +377,4 @@ describe('SEA', function(){ }) -}()); \ No newline at end of file +}());