Skip to content

Commit 1515dfb

Browse files
committed
Merge branch 'jest_testing' of https://github.com/jahn96/project2 into jest_testing
2 parents cfc5857 + 66fd450 commit 1515dfb

File tree

2 files changed

+1
-44
lines changed

2 files changed

+1
-44
lines changed

.eslintignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ coverage
55
test
66
_temp_extension
77
babel.config.ts
8-
jest.config.ts
8+
jest.config.ts

test/codeSnippetContentsService.test.ts

-43
Original file line numberDiff line numberDiff line change
@@ -130,46 +130,3 @@ test('test delete', async () => {
130130
const path = 'foo/test';
131131
await codeSnippetContentsService.delete(path);
132132
});
133-
134-
// test('test save', () => {
135-
// const newContent = {
136-
// name: 'new_array',
137-
// description:
138-
// 'Scala program of array. Declare, print, and calculate sum of all elements.',
139-
// language: 'Scala',
140-
// code: [],
141-
// id: 11,
142-
// tags: ['math']
143-
// };
144-
// codeSnippetContentsService.save('snippets/sum_array.json', {
145-
// type: 'file',
146-
// format: 'text',
147-
// content: JSON.stringify(newContent)
148-
// });
149-
150-
// const data = codeSnippetContentsService.getData(
151-
// 'snippets/sum_array.json',
152-
// 'file'
153-
// );
154-
155-
// data.then(val => expect(JSON.parse(val.content).code.length).toBe(0));
156-
// });
157-
158-
// test('test rename', () => {
159-
// const oldPath = 'snippets/sum_array.json';
160-
// const newPath = 'snippets/new_array.json';
161-
// codeSnippetContentsService.rename(oldPath, newPath);
162-
163-
// codeSnippetContentsService
164-
// .getData(newPath, 'file')
165-
// .then(val => expect(val).toBeTruthy());
166-
// });
167-
168-
// test('test delete', () => {
169-
// const path = 'snippets/sum_array.json';
170-
// codeSnippetContentsService.delete(path);
171-
172-
// codeSnippetContentsService
173-
// .getData(path, 'file')
174-
// .then(val => expect(val).toBeNull());
175-
// });

0 commit comments

Comments
 (0)