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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.0.11latest

Version History

VersionDownloads (Last 7 Days)Published
2.0.11
2.0.00
1.0.10

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