Socket
Socket
Sign inDemoInstall

@beamnetwork/chai-beam

Package Overview
Dependencies
423
Maintainers
5
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.6 to 0.2.7

16

index.js

@@ -18,5 +18,5 @@ /* eslint-env mocha */

expect.fail(new Error('The promise did not revert'));
} catch (e) {
message = message || e.message;
assert(e.message == 'VM Exception while processing transaction: revert', `Expected revert, Error: ${message}`);
} catch (error) {
const msg = message || error.message;
assert(error.message === 'VM Exception while processing transaction: revert', `Expected revert, Error: ${msg}`);
}

@@ -33,5 +33,5 @@ }

} catch (error) {
const invalidOpcodeReceived = error.message == 'VM Exception while processing transaction: invalid opcode';
message = message || e.message;
assert(invalidOpcodeReceived, `Expected "invalid opcode", Error: ${message}`);
const invalidOpcodeReceived = error.message === 'VM Exception while processing transaction: invalid opcode';
const msg = message || error.message;
assert(invalidOpcodeReceived, `Expected "invalid opcode", Error: ${msg}`);
}

@@ -43,4 +43,4 @@ }

await promise;
} catch (e) {
if (e.message.search('revert') < 0) throw e;
} catch (error) {
if (error.message.search('revert') < 0) throw error;
}

@@ -47,0 +47,0 @@ }

{
"name": "@beamnetwork/chai-beam",
"version": "0.2.6",
"version": "0.2.7",
"description": "Beam plugins for chai",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc