Skip to content

Commit abd1f82

Browse files
greenkeeper[bot]thymikee
authored andcommitted
chore: update @callstack/eslint-config to the latest version 🚀 (#134)
## 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’t 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’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new). </details> --- Your [Greenkeeper](https://greenkeeper.io) bot 🌴
1 parent ce3bf28 commit abd1f82

File tree

6 files changed

+126
-147
lines changed

6 files changed

+126
-147
lines changed

.eslintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"extends": "@callstack",
33
"rules": {
44
"flowtype/no-weak-types": 0,
5-
"react/no-multi-comp": 0
5+
"react-native/no-raw-text": 0,
6+
"no-console": 1
67
}
78
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
"@babel/cli": "^7.1.2",
1313
"@babel/core": "^7.1.2",
1414
"@babel/runtime": "^7.1.2",
15-
"@callstack/eslint-config": "^3.0.0",
15+
"@callstack/eslint-config": "^4.0.1",
1616
"@types/react": "^16.7.11",
1717
"@types/react-test-renderer": "^16.0.3",
1818
"babel-jest": "^24.1.0",
1919
"chalk": "^2.4.1",
2020
"conventional-changelog-cli": "^2.0.11",
2121
"dedent": "^0.7.0",
22-
"eslint": "^5.14.1",
22+
"eslint": "^5.15.2",
2323
"flow-bin": "^0.94.0",
2424
"flow-copy-source": "^2.0.2",
2525
"jest": "^24.1.0",

src/__tests__/debug.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ test('debug', () => {
4444

4545
debug(component, 'test message');
4646

47-
expect(console.log).toBeCalledWith('test message\n\n', output);
47+
expect(console.log).toHaveBeenCalledWith('test message\n\n', output);
4848
});
4949

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

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

69-
expect(console.log).toBeCalledWith('test message\n\n', output);
69+
expect(console.log).toHaveBeenCalledWith('test message\n\n', output);
7070
});
7171

7272
test('debug.deep async test', async () => {

src/__tests__/fireEvent.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ describe('fireEvent', () => {
5151
test('should throw an Error when event handler was not found', () => {
5252
const { getByTestId } = render(<WithoutEventComponent />);
5353

54-
expect(() => fireEvent(getByTestId('text'), 'press')).toThrowError(
54+
expect(() => fireEvent(getByTestId('text'), 'press')).toThrow(
5555
'No handler function found for event: press'
5656
);
5757
});
@@ -79,7 +79,7 @@ describe('fireEvent', () => {
7979
</TouchableOpacity>
8080
);
8181

82-
expect(() => fireEvent.press(getByTestId('test'))).toThrowError();
82+
expect(() => fireEvent.press(getByTestId('test'))).toThrow();
8383
expect(onPressMock).not.toHaveBeenCalled();
8484
});
8585
});

src/__tests__/waitForElement.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Banana extends React.Component<*, *> {
1414
<View>
1515
{this.props.fresh && <Text testID="fresh">Fresh</Text>}
1616
<TouchableOpacity onPress={this.changeFresh}>
17-
Change freshness!
17+
<Text>Change freshness!</Text>
1818
</TouchableOpacity>
1919
</View>
2020
);
@@ -69,7 +69,7 @@ test('waits for element with custom interval', async () => {
6969
// suppress
7070
}
7171

72-
expect(mockFn).toBeCalledTimes(3);
72+
expect(mockFn).toHaveBeenCalledTimes(3);
7373
});
7474

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

89-
expect(mockFn).toBeCalledTimes(3);
89+
expect(mockFn).toHaveBeenCalledTimes(3);
9090

9191
jest.useRealTimers();
9292
});

0 commit comments

Comments
 (0)