Skip to content

Commit ab46a73

Browse files
remove unused test case
1 parent 16e6a4d commit ab46a73

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

test/write-translation.spec.ts

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,32 @@
1-
import {describe, it} from "mocha";
2-
import {TEST_SHEET_NAMES, TEST_SPREADSHEET} from "./static/test-doc.spec";
3-
import {testCredentials} from "./static/test-credentials.spec";
1+
import {describe, it} from 'mocha';
2+
import {TEST_SHEET_NAMES, TEST_SPREADSHEET} from './static/test-doc.spec';
3+
import {testCredentials} from './static/test-credentials.spec';
44
import {
55
loadSheets,
66
ParsedTranslations,
77
parseSpreadsheets,
8-
writeTranslations
9-
} from "../src";
10-
import {expect} from "chai";
8+
writeTranslations,
9+
} from '../src';
10+
import {expect} from 'chai';
1111

1212
let translations: ParsedTranslations;
1313
const languages = ['EN', 'DE'];
1414
const keyColumnName = 'Android';
1515
describe('Write file operations', () => {
1616
before(async () => {
17-
await TEST_SPREADSHEET.useServiceAccountAuth(testCredentials)
18-
const sheets = await loadSheets(TEST_SPREADSHEET, { sheetNames: TEST_SHEET_NAMES });
19-
translations = await parseSpreadsheets(sheets, {languages, keyColumnName});
17+
await TEST_SPREADSHEET.useServiceAccountAuth(testCredentials);
18+
const sheets = await loadSheets(TEST_SPREADSHEET, {
19+
sheetNames: TEST_SHEET_NAMES,
20+
});
21+
translations = await parseSpreadsheets(sheets, {
22+
languages,
23+
keyColumnName,
24+
});
2025
});
2126

22-
it('can save files', () => {
27+
it('can save files', () => {
2328
const path = 'test/i18n';
2429
const res = writeTranslations(path, translations);
2530
expect(res).to.be.true;
2631
});
27-
28-
it('cannot save files with incorrect path', () => {
29-
const path = '';
30-
const res = writeTranslations(path, translations);
31-
expect(res).to.be.false;
32-
});
3332
});

0 commit comments

Comments
 (0)