@@ -130,46 +130,3 @@ test('test delete', async () => {
130
130
const path = 'foo/test' ;
131
131
await codeSnippetContentsService . delete ( path ) ;
132
132
} ) ;
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