How to use the fusion-test-utils.test function in fusion-test-utils

To help you get started, we’ve selected a few fusion-test-utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github fusionjs / fusion-cli / test / e2e / test-jest-app / fixture / src / __tests__ / class-props.js View on Github external
// @noflow
import {test} from 'fusion-test-utils';

import classPropFixture from '../class-props';

test('Class properties work /w flow annotation', async assert => {
  const result = new classPropFixture();
  assert.equal(
    result.classProp(),
    true,
    'class props work and evaluates to true'
  );
});
github fusionjs / fusion-cli / test / fixtures / test-jest-babel / src / __tests__ / babel.js View on Github external
import {test} from 'fusion-test-utils';

test('string is transformed', assert => {
  assert.equal("helloworld", "transformed_helloworld_custom_babel");
});
github fusionjs / fusion-cli / test / fixtures / test-jest-app / src / __tests__ / snapshot-enzyme-no-match.js View on Github external
import React from 'react';
import {shallow} from 'enzyme';
import {test} from 'fusion-test-utils';

test('Enzyme wrapper snapshotting', assert => {
  const wrapper = shallow(<div data-should-fail="">);
  assert.matchSnapshot(wrapper);
});
</div>
github fusionjs / fusion-cli / test / fixtures / test-jest-app / src / __tests__ / environment-variables.js View on Github external
import {test} from 'fusion-test-utils';

test('__DEV__ environment variable is set', assert => {
  assert.equal(__DEV__, true);
});
github fusionjs / fusion-cli / test / fixtures / test-jest-app / src / __tests__ / dynamic-imports.js View on Github external
import {test} from 'fusion-test-utils';

import dynamicImport from '../dynamic-import';

test('Dynamic imports work', async assert => {
  const result = await dynamicImport();
  assert.equal(result, true, 'dynamic import works and evaluates to true');
});
github fusionjs / fusion-cli / test / fixtures / test-jest-app / src / __tests__ / passes.js View on Github external
import {test} from 'fusion-test-utils';

import main from '../main';

test('Everything is ok', assert => {
  assert.equal(main(), true);
});
github fusionjs / fusion-cli / test / fixtures / test-jest-app / src / __tests__ / fails.js View on Github external
import {test} from 'fusion-test-utils';

test('Test case fails', assert => {
  assert.equal(true, false);
});
github fusionjs / fusion-cli / test / fixtures / test-jest-app / src / __tests__ / snapshot-no-match.js View on Github external
import React from 'react';
import renderer from 'react-test-renderer';
import {test} from 'fusion-test-utils';

test('Does not match snapshot', assert =&gt; {
  const tree = renderer
    .create(<div data-should-fail="">)
    .toJSON();
  assert.matchSnapshot(tree);
});
</div>
github fusionjs / fusion-cli / test / fixtures / test-jest-app / src / __tests__ / pass-browser.browser.js View on Github external
import {test} from 'fusion-test-utils';

test('Test case passes', assert => {
  assert.equal(__BROWSER__, true);
});
github fusionjs / fusion-cli / test / fixtures / test-jest-app / src / __tests__ / fail-node.node.js View on Github external
import {test} from 'fusion-test-utils';

test('Test case fails', assert => {
  assert.equal(true, false);
});

fusion-test-utils

Test utilities for FusionJS

MIT
Latest version published 2 years ago

Package Health Score

54 / 100
Full package analysis

Similar packages