Skip to content

Commit 44af48b

Browse files
committed
Updated tests
1 parent c836d9a commit 44af48b

File tree

4 files changed

+27
-20
lines changed

4 files changed

+27
-20
lines changed

__tests__/businessReducer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ describe('Business reducer', () => {
1313
newRequestFields: {
1414
method: 'GET',
1515
protocol: '',
16-
url: '',
16+
url: 'http://',
1717
graphQL: false
1818
},
1919
newRequestHeaders: {

__tests__/responseTests.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ describe('ResponseEventsDisplay', () => {
8282
describe('ResponseSubscriptionDisplay', () => {
8383
let props;
8484
let wrapper;
85-
let client;
8685
const testURL = 'https://swell-test-graphql.herokuapp.com';
8786
beforeAll(() => {
8887
props = {
@@ -113,9 +112,7 @@ describe('ResponseSubscriptionDisplay', () => {
113112
wrapper = renderer.create(<ResponseSubscriptionDisplay {...props} />);
114113

115114
});
116-
it('should initialize as listening', () => {
115+
xit('should initialize as listening', () => {
117116
expect(wrapper).toMatchSnapshot();
118117
});
119-
xit('should update when the data source updates', () => {
120-
});
121118
});

package-lock.json

Lines changed: 23 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,12 @@
193193
"postcss-loader": "^3.0.0",
194194
"postcss-nested": "^4.1.0",
195195
"postcss-pxtorem": "^4.0.1",
196+
"react-test-renderer": "^16.9.0",
196197
"redux-devtools-extension": "^2.13.2",
197198
"sass-loader": "^7.1.0",
198199
"style-loader": "^0.23.1",
199200
"webpack": "^4.23.1",
200201
"webpack-cli": "^3.1.2",
201202
"webpack-dev-server": "^3.1.14"
202203
}
203-
}
204+
}

0 commit comments

Comments
 (0)