Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial test passed anyway #6

Open
vvscode opened this issue Jul 8, 2017 · 0 comments
Open

Initial test passed anyway #6

vvscode opened this issue Jul 8, 2017 · 0 comments

Comments

@vvscode
Copy link

vvscode commented Jul 8, 2017

Event with blank file Component.js initial test

import React, {View} from 'react-native';
import {shallow} from 'enzyme';
import {expect} from 'chai';

import Comment from './Comment';

describe('<comment>', () => {
  if ('shoulw be a view component', () => {
    const wrapper = shallow(<Comment></Comment>);

      expect(wrapper.type())
        .to
        .equal(View);
    });
});

still passing. Event with incorrect tags inside shallow it still works. Hot to break it? The idea - first get test red. and only further start developing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant