Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should throw if `load` is called with incorrect execution context', () => {
// Arrange
const { plugin, robotMock } = arrange(sinon.stub())
// Act, Assert
const err = assert.throws(() => plugin.load.call(undefined, robotMock))
assert.equal('Unexpected execution context for method call', err.message)
})