feat: 초기 프로젝트 설정 및 룰.md 파일 추가
This commit is contained in:
23
api.hyungi.net/node_modules/vizion/test/functional/cliCommand.test.js
generated
vendored
Normal file
23
api.hyungi.net/node_modules/vizion/test/functional/cliCommand.test.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
var expect = require('chai').expect;
|
||||
var cliCommand = require("../../lib/cliCommand.js");
|
||||
|
||||
describe('Functional: cliCommand', function () {
|
||||
|
||||
it("ok", function () {
|
||||
var target, folder;
|
||||
|
||||
if (/^win/.exec(process.platform)) {
|
||||
folder = "C:\\Program Files\\nodejs\\foobar";
|
||||
target = "cd \"" + folder + "\" && git status -s";
|
||||
}
|
||||
else {
|
||||
folder = "/etc/node/foobar";
|
||||
target = "cd '" + folder + "';LC_ALL=en_US.UTF-8 git status -s";
|
||||
}
|
||||
|
||||
|
||||
var result = cliCommand(folder, "git status -s");
|
||||
expect(target).to.eq(result);
|
||||
});
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user