Skip to content

Commit

Permalink
chore: update @callstack/eslint-config to the latest version 馃殌 (#134)
Browse files Browse the repository at this point in the history
## The devDependency [@callstack/eslint-config](https://github.com/callstack/eslint-config-callstack) was updated from `3.0.2` to `4.0.0`.
This version is **not covered** by your **current version range**.

If you don鈥檛 accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.

---

[Find out more about this release](https://github.com/callstack/eslint-config-callstack).

<details>
  <summary>FAQ and help</summary>

  There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those don鈥檛 help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).
</details>

---


Your [Greenkeeper](https://greenkeeper.io) bot 馃尨
  • Loading branch information
greenkeeper[bot] authored and thymikee committed Mar 16, 2019
1 parent ce3bf28 commit abd1f82
Show file tree
Hide file tree
Showing 6 changed files with 126 additions and 147 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Expand Up @@ -2,6 +2,7 @@
"extends": "@callstack",
"rules": {
"flowtype/no-weak-types": 0,
"react/no-multi-comp": 0
"react-native/no-raw-text": 0,
"no-console": 1
}
}
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -12,14 +12,14 @@
"@babel/cli": "^7.1.2",
"@babel/core": "^7.1.2",
"@babel/runtime": "^7.1.2",
"@callstack/eslint-config": "^3.0.0",
"@callstack/eslint-config": "^4.0.1",
"@types/react": "^16.7.11",
"@types/react-test-renderer": "^16.0.3",
"babel-jest": "^24.1.0",
"chalk": "^2.4.1",
"conventional-changelog-cli": "^2.0.11",
"dedent": "^0.7.0",
"eslint": "^5.14.1",
"eslint": "^5.15.2",
"flow-bin": "^0.94.0",
"flow-copy-source": "^2.0.2",
"jest": "^24.1.0",
Expand Down
4 changes: 2 additions & 2 deletions src/__tests__/debug.test.js
Expand Up @@ -44,7 +44,7 @@ test('debug', () => {

debug(component, 'test message');

expect(console.log).toBeCalledWith('test message\n\n', output);
expect(console.log).toHaveBeenCalledWith('test message\n\n', output);
});

test('debug.shallow', () => {
Expand All @@ -66,7 +66,7 @@ test('debug.deep', () => {

debug.deep(component, 'test message');

expect(console.log).toBeCalledWith('test message\n\n', output);
expect(console.log).toHaveBeenCalledWith('test message\n\n', output);
});

test('debug.deep async test', async () => {
Expand Down
4 changes: 2 additions & 2 deletions src/__tests__/fireEvent.test.js
Expand Up @@ -51,7 +51,7 @@ describe('fireEvent', () => {
test('should throw an Error when event handler was not found', () => {
const { getByTestId } = render(<WithoutEventComponent />);

expect(() => fireEvent(getByTestId('text'), 'press')).toThrowError(
expect(() => fireEvent(getByTestId('text'), 'press')).toThrow(
'No handler function found for event: press'
);
});
Expand Down Expand Up @@ -79,7 +79,7 @@ describe('fireEvent', () => {
</TouchableOpacity>
);

expect(() => fireEvent.press(getByTestId('test'))).toThrowError();
expect(() => fireEvent.press(getByTestId('test'))).toThrow();
expect(onPressMock).not.toHaveBeenCalled();
});
});
Expand Down
6 changes: 3 additions & 3 deletions src/__tests__/waitForElement.test.js
Expand Up @@ -14,7 +14,7 @@ class Banana extends React.Component<*, *> {
<View>
{this.props.fresh && <Text testID="fresh">Fresh</Text>}
<TouchableOpacity onPress={this.changeFresh}>
Change freshness!
<Text>Change freshness!</Text>
</TouchableOpacity>
</View>
);
Expand Down Expand Up @@ -69,7 +69,7 @@ test('waits for element with custom interval', async () => {
// suppress
}

expect(mockFn).toBeCalledTimes(3);
expect(mockFn).toHaveBeenCalledTimes(3);
});

test('works with fake timers', async () => {
Expand All @@ -86,7 +86,7 @@ test('works with fake timers', async () => {
}
jest.runTimersToTime(400);

expect(mockFn).toBeCalledTimes(3);
expect(mockFn).toHaveBeenCalledTimes(3);

jest.useRealTimers();
});

0 comments on commit abd1f82

Please sign in to comment.