Skip to content
This repository was archived by the owner on Nov 28, 2022. It is now read-only.

Commit f24f1ff

Browse files
author
Dom Harrington
committed
Prettier
1 parent cffa392 commit f24f1ff

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

packages/api-explorer-ui/__tests__/PathUrl.test.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ test('button click should call onSubmit', () => {
6868
operation={new Operation({}, '/path', 'get', { operationId: '123' })}
6969
onSubmit={onSubmit}
7070
/>,
71-
).find('button[type="submit"]').simulate('click');
71+
)
72+
.find('button[type="submit"]')
73+
.simulate('click');
7274

7375
expect(called).toBe(true);
7476
});

packages/api-explorer-ui/__tests__/lib/Oas.test.js

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,20 +71,22 @@ test('should be able to access properties on oas', () => {
7171
});
7272

7373
describe('operation.getSecurity()', () => {
74-
const security = [{ 'auth': [] }];
74+
const security = [{ auth: [] }];
7575

7676
test('should return the security on this endpoint', () => {
7777
expect(
7878
new Oas({
7979
info: { version: '1.0' },
8080
paths: {
8181
'/things': {
82-
'post': {
82+
post: {
8383
security,
84-
}
84+
},
8585
},
86-
}
87-
}).operation('/things', 'post').getSecurity(),
86+
},
87+
})
88+
.operation('/things', 'post')
89+
.getSecurity(),
8890
).toBe(security);
8991
});
9092

@@ -94,11 +96,13 @@ describe('operation.getSecurity()', () => {
9496
info: { version: '1.0' },
9597
paths: {
9698
'/things': {
97-
'post': {}
99+
post: {},
98100
},
99101
},
100102
security,
101-
}).operation('/things', 'post').getSecurity(),
103+
})
104+
.operation('/things', 'post')
105+
.getSecurity(),
102106
).toBe(security);
103107
});
104108

@@ -108,10 +112,12 @@ describe('operation.getSecurity()', () => {
108112
info: { version: '1.0' },
109113
paths: {
110114
'/things': {
111-
'post': {}
115+
post: {},
112116
},
113117
},
114-
}).operation('/things', 'post').getSecurity(),
118+
})
119+
.operation('/things', 'post')
120+
.getSecurity(),
115121
).toEqual([]);
116122
});
117123
});

0 commit comments

Comments
 (0)