Comparing version 0.0.1 to 0.1.0
@@ -40,4 +40,16 @@ 'use strict'; | ||
return asserts; | ||
} | ||
}; | ||
export let getAllResults = () => { | ||
return fs.readdirSync(dir) | ||
.reduce((prev, filename) => { | ||
prev[filename] = JSON.parse(fs.readFileSync(join(dir, filename), 'utf-8')); | ||
return prev; | ||
}, {}); | ||
}; | ||
export let save = (filename, info) => { | ||
fs.writeFileSync(join(dir, filename), JSON.stringify(info)); | ||
}; | ||
// Keeping for reasons | ||
@@ -44,0 +56,0 @@ export class BaddFile { |
export declare let getStoredResults: (fileName: string) => any; | ||
export declare let getAllResults: () => {}; | ||
export declare let save: (filename: any, info: any) => void; | ||
export declare class BaddFile { | ||
@@ -3,0 +5,0 @@ asserts: any; |
@@ -36,2 +36,12 @@ 'use strict'; | ||
}; | ||
exports.getAllResults = () => { | ||
return fs.readdirSync(dir) | ||
.reduce((prev, filename) => { | ||
prev[filename] = JSON.parse(fs.readFileSync(path_1.join(dir, filename), 'utf-8')); | ||
return prev; | ||
}, {}); | ||
}; | ||
exports.save = (filename, info) => { | ||
fs.writeFileSync(path_1.join(dir, filename), JSON.stringify(info)); | ||
}; | ||
// Keeping for reasons | ||
@@ -38,0 +48,0 @@ class BaddFile { |
{ | ||
"name": "baddsert", | ||
"version": "0.0.1", | ||
"version": "0.1.0", | ||
"description": "Baseline Acceptance Driven Development for JavaScript", | ||
@@ -17,2 +17,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"readline-sync": "^1.4.1", | ||
"typescript": "^1.8.9" | ||
@@ -22,3 +23,4 @@ }, | ||
"mocha": "^2.4.5" | ||
} | ||
}, | ||
"bin": "./dist/cli" | ||
} |
@@ -9,2 +9,4 @@ # baddsert | ||
`// TODO: Real docs` | ||
`// TODO: Real docs` | ||
Further reading: https://medium.com/@tinganho/baseline-acceptance-driven-development-f39f7010a04#.d1fdg36x0 |
@@ -23,2 +23,2 @@ 'use strict'; | ||
}); | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11228
21
346
11
2
+ Addedreadline-sync@^1.4.1
+ Addedreadline-sync@1.4.10(transitive)