@mugshot/browser-contract
v2.0.1
Published
Contract tests for Mugshot's Browser interface
Downloads
2
Readme
Contract tests for Mugshot's
Browser
interface
Usage
import { describe, it, before } from 'mocha';
import MyAdapter from './src';
import browserContractTests, { BrowserToBeAdapted } from '@mugshot/browser-contract';
describe('MyAdapter', () => {
let browser!: BrowserToBeAdapted;
before(async () => {
// Set up browser here.
});
browserContractTests.forEach(test => {
it(test.name, test.getTest(browser, new MyAdapter(browser)));
});
});