@mugshot/browser-contract
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

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)));
  });
});

Package Sidebar

Install

npm i @mugshot/browser-contract

Weekly Downloads

1

Version

2.0.1

License

MIT

Unpacked Size

17.5 kB

Total Files

6

Last publish

Collaborators

  • nighttrax