Skip to content

Initial test passed anyway #6

Description

@vvscode

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions