Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit369fb7c

Browse files
committed
update test runner
1 parent09a0c59 commit369fb7c

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

‎CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to[Semantic Versioning](http://semver.org/).
44

5-
##[0.5.5] -in progress
5+
##[0.5.5] -2016-03-12
66
- fixes for Windows
7+
- no need to pass`handleLog` to test runner
78

89
##[0.5.4] - 2016-03-09
910
- fix bug that prevented scroll in Atom 1.6+

‎src/reducers/run-tests/run.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import{handleResult,handleLog}from'./test-result';
1+
import{handleResult}from'./test-result';
22
import{store}from'../../_base';
33

44
exportfunctionrunTaskTests(setup?:boolean):boolean{
@@ -7,7 +7,7 @@ export function runTaskTests(setup?: boolean): boolean {
77
letconfig=window.coderoad;
88
config.taskPosition=store.getState().taskPosition;
99
// call test runner
10-
window.coderoad.runner(tests,config,handleResult,handleLog);
10+
window.coderoad.runner(tests,config,handleResult);
1111
}
1212
returntrue;
1313
}

‎src/reducers/run-tests/test-result.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,3 @@ export function handleResult(result: CR.TestResult) {
1919
store.dispatch(Action.testResult(result));
2020
}
2121
};
22-
23-
exportfunctionhandleLog(message:string):void{
24-
console.log(message);
25-
store.dispatch(Action.logMessage(message));
26-
}

‎src/services/exists.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as fs from 'fs';
22

33
exportfunctionfileExists(pathToFile:string):boolean{
44
try{
5-
fs.accessSync(pathToFile,fs.R_OK|fs.W_OK);
5+
fs.accessSync(pathToFile,fs.F_OK);
66
}catch(e){
77
if(e){
88
if(e.code!=='ENOENT'){

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp