@mugshot/browser-contract
Contract tests for Mugshot's Browser interface
Last updated 5 months ago by nighttrax .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @mugshot/browser-contract 
SYNC missed versions from official npm registry.

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

Current Tags

  • 2.0.1                                ...           latest (5 months ago)

3 Versions

  • 2.0.1                                ...           5 months ago
  • 2.0.0                                ...           5 months ago
  • 1.0.1                                ...           5 months ago
Maintainers (1)
Downloads
Today 0
This Week 3
This Month 3
Last Day 0
Last Week 0
Last Month 2
Dependencies (7)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |