power-assert.js 337 B

1234567891011121314151617181920
  1. import test from '../..';
  2. test.serial('bar', t => {
  3. const a = 'foo';
  4. t.true(a === 'bar');
  5. });
  6. test.serial('foo', t => {
  7. const a = 'bar';
  8. t.true(a === 'foo', 'with message');
  9. });
  10. test.serial('span', t => {
  11. const React = { // eslint-disable-line no-unused-vars
  12. createElement: type => type
  13. };
  14. t.true(<div /> === <span />);
  15. });