Skip to content

Commit 826f8aa

Browse files
committed
fix: tests
1 parent c977a27 commit 826f8aa

2 files changed

Lines changed: 0 additions & 21 deletions

File tree

tests/methods/create.test.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,6 @@ test('check that create method can have title and description', async () => {
3030
expect(res.description).toBe('A test desc');
3131
});
3232

33-
test('check that language defaults to text', async () => {
34-
const res = await create([
35-
{
36-
content: 'test',
37-
},
38-
]);
39-
40-
expect(res.files[0].content).toBe('test');
41-
expect(res.files[0].language.name).toBe('Text');
42-
});
43-
4433
test('check that multiple files throws an error', async () => {
4534
await create([
4635
{

tests/util/validateFile.test.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,3 @@ test('check that validateFile returns error with no content', () => {
5454

5555
expect(valid).not.toEqual(true);
5656
});
57-
58-
test('check that validateFile returns error with no language', () => {
59-
const file = {
60-
content: 'test',
61-
};
62-
63-
const valid = validateFile(file);
64-
65-
expect(valid).not.toEqual(true);
66-
});

0 commit comments

Comments
 (0)