Skip to content

Commit

Permalink
test: add more test
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshinorin committed May 29, 2020
1 parent f56d3fd commit 339b240
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions src/test/suite/extensions.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,39 @@
import * as assert from 'assert';
import * as path from 'path';
import * as vscode from 'vscode';
import { CurrentFile } from '../../currentFile';
const clipboardy = require("clipboardy");

describe('Default config test', () => {

before(async () => {
const doc = await vscode.workspace.openTextDocument(path.resolve(__dirname, '../../../README.md'));
await vscode.window.showTextDocument(doc);
});

const config = vscode.workspace.getConfiguration('currentFilePath');
const currentFile = new CurrentFile();

it('defaultPathStyle setting is same with workSpace setting', async () => {
//@ts-ignore
// execute private method
assert.strictEqual(config.get('defaultPathStyle'), currentFile.config.defaultPathStyle);
});

it('priorityInStatusBar setting is same with workSpace setting', async () => {
//@ts-ignore
// execute private method
assert.strictEqual(config.get('priorityInStatusBar'), currentFile.config.priorityInStatusBar);
});

it('defaultPathStartsFrom setting is same with workSpace setting', async () => {
//@ts-ignore
// execute private method
assert.strictEqual(config.get('defaultPathStartsFrom'), currentFile.config.defaultPathStartsFrom);
});

})

describe('Copy features test', () => {

before(async () => {
Expand Down

0 comments on commit 339b240

Please sign in to comment.