Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// @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'
);
});
import {test} from 'fusion-test-utils';
test('string is transformed', assert => {
assert.equal("helloworld", "transformed_helloworld_custom_babel");
});
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>
import {test} from 'fusion-test-utils';
test('__DEV__ environment variable is set', assert => {
assert.equal(__DEV__, true);
});
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');
});
import {test} from 'fusion-test-utils';
import main from '../main';
test('Everything is ok', assert => {
assert.equal(main(), true);
});
import {test} from 'fusion-test-utils';
test('Test case fails', assert => {
assert.equal(true, false);
});
import React from 'react';
import renderer from 'react-test-renderer';
import {test} from 'fusion-test-utils';
test('Does not match snapshot', assert => {
const tree = renderer
.create(<div data-should-fail="">)
.toJSON();
assert.matchSnapshot(tree);
});
</div>
import {test} from 'fusion-test-utils';
test('Test case passes', assert => {
assert.equal(__BROWSER__, true);
});
import {test} from 'fusion-test-utils';
test('Test case fails', assert => {
assert.equal(true, false);
});