Skip to content

Commit 738b70d

Browse files
committed
chore: removing string templating where are aren't inserting vars
1 parent b2f91ef commit 738b70d

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

__tests__/cmds/docs.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ describe('rdme docs', () => {
7171
expect.assertions(1);
7272

7373
const getMocks = getNockWithVersionHeader(version)
74-
.get(`/api/v1/docs/simple-doc`)
74+
.get('/api/v1/docs/simple-doc')
7575
.basicAuth({ user: key })
7676
.reply(200, { category, slug: simpleDoc.slug, lastUpdatedHash: 'anOldHash' })
77-
.get(`/api/v1/docs/another-doc`)
77+
.get('/api/v1/docs/another-doc')
7878
.basicAuth({ user: key })
7979
.reply(200, { category, slug: anotherDoc.slug, lastUpdatedHash: 'anOldHash' });
8080

@@ -170,7 +170,7 @@ describe('rdme docs', () => {
170170
});
171171

172172
const postMock = getNockWithVersionHeader(version)
173-
.post(`/api/v1/docs`, { slug, body: doc.content, ...doc.data, lastUpdatedHash: hash })
173+
.post('/api/v1/docs', { slug, body: doc.content, ...doc.data, lastUpdatedHash: hash })
174174
.basicAuth({ user: key })
175175
.reply(201, { slug, body: doc.content, ...doc.data, lastUpdatedHash: hash });
176176

@@ -295,7 +295,7 @@ describe('rdme docs', () => {
295295
});
296296

297297
const postMock = getNockWithVersionHeader(version)
298-
.post(`/api/v1/docs`, { slug, body: doc.content, ...doc.data, lastUpdatedHash: hash })
298+
.post('/api/v1/docs', { slug, body: doc.content, ...doc.data, lastUpdatedHash: hash })
299299
.basicAuth({ user: key })
300300
.reply(201, { slug: doc.data.slug, body: doc.content, ...doc.data, lastUpdatedHash: hash });
301301

__tests__/cmds/openapi.test.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ describe('rdme openapi', () => {
3535
promptHandler.createOasPrompt.mockResolvedValue({ option: 'create' });
3636

3737
const mock = nock(config.host)
38-
.get(`/api/v1/version`)
38+
.get('/api/v1/version')
3939
.basicAuth({ user: key })
4040
.reply(200, [{ version }])
4141
.post('/api/v1/version')
4242
.basicAuth({ user: key })
4343
.reply(200, { from: '1.0.1', version: '1.0.1' })
44-
.get(`/api/v1/api-specification`)
44+
.get('/api/v1/api-specification')
4545
.basicAuth({ user: key })
4646
.reply(200, [])
4747
.post('/api/v1/api-specification', body => body.match('form-data; name="spec"'))
@@ -73,7 +73,7 @@ describe('rdme openapi', () => {
7373
.get(`/api/v1/version/${version}`)
7474
.basicAuth({ user: key })
7575
.reply(200, { version: '1.0.0' })
76-
.get(`/api/v1/api-specification`)
76+
.get('/api/v1/api-specification')
7777
.basicAuth({ user: key })
7878
.reply(200, [])
7979
.post('/api/v1/api-specification', body => body.match('form-data; name="spec"'))
@@ -99,7 +99,7 @@ describe('rdme openapi', () => {
9999

100100
it('should POST to the swagger api if no id provided', () => {
101101
const mock = nock(config.host)
102-
.get(`/api/v1/api-specification`)
102+
.get('/api/v1/api-specification')
103103
.basicAuth({ user: key })
104104
.reply(200, [])
105105
.get(`/api/v1/version/${version}`)
@@ -127,7 +127,7 @@ describe('rdme openapi', () => {
127127
.get(`/api/v1/version/${version}`)
128128
.basicAuth({ user: key })
129129
.reply(200, { version: '1.0.0' })
130-
.get(`/api/v1/api-specification`)
130+
.get('/api/v1/api-specification')
131131
.basicAuth({ user: key })
132132
.reply(200, [])
133133
.post('/api/v1/api-specification', body => body.match('form-data; name="spec"'))
@@ -165,7 +165,7 @@ describe('rdme openapi', () => {
165165
.post('/api/v1/version')
166166
.basicAuth({ user: key })
167167
.reply(200, { from: '1.0.1', version: '1.0.1' })
168-
.get(`/api/v1/api-specification`)
168+
.get('/api/v1/api-specification')
169169
.basicAuth({ user: key })
170170
.reply(200, [])
171171
.post('/api/v1/api-specification', body => body.match('form-data; name="spec"'))
@@ -213,7 +213,7 @@ describe('rdme openapi', () => {
213213
it('should bundle and upload the expected content', () => {
214214
let requestBody = null;
215215
const mock = nock(config.host)
216-
.get(`/api/v1/api-specification`)
216+
.get('/api/v1/api-specification')
217217
.basicAuth({ user: key })
218218
.reply(200, [])
219219
.get(`/api/v1/version/${version}`)

__tests__/cmds/versions.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ describe('rdme versions*', () => {
113113
.get('/api/v1/version')
114114
.basicAuth({ user: key })
115115
.reply(200, [{ version }, { version }])
116-
.post(`/api/v1/version`)
116+
.post('/api/v1/version')
117117
.basicAuth({ user: key })
118118
.reply(201, { version });
119119

0 commit comments

Comments
 (0)