Skip to content

Commit 94aa0f2

Browse files
committed
chore: final cleanup
1 parent 4313575 commit 94aa0f2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/it/it-tests.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,18 @@ export default (ctx) => describe('Integration Tests: it tests', function () {
290290
assert.strictEqual(resp.status, 404, `Expected 404 Not Found, got ${resp.status}`);
291291
});
292292

293+
it('should do a final delete of the root folder', async () => {
294+
const {
295+
serverUrl, org, repo, accessToken,
296+
} = ctx;
297+
const url = `${serverUrl}/source/${org}/${repo}`;
298+
const resp = await fetch(url, {
299+
method: 'DELETE',
300+
headers: { Authorization: `Bearer ${accessToken}` },
301+
});
302+
assert.strictEqual(resp.status, 204, `Expected 204 No Content, got ${resp.status}`);
303+
});
304+
293305
it('should logout via HTTP request', async () => {
294306
const { serverUrl, accessToken } = ctx;
295307
const url = `${serverUrl}/logout`;

0 commit comments

Comments
 (0)