letter-count
Version:
This is a calculator which counts the number of letters/ characters/ lines/ words/ numbers or wordsigns in a text, useful for your tweets on Twitter, as well as a multitude of other applications.
32 lines (26 loc) • 966 B
JavaScript
const Jasmine = require('jasmine'),
Reporters = require('jasmine-reporters');
let jasmine = new Jasmine();
jasmine.loadConfigFile('spec/support/jasmine.json');
// jasmine.getEnv().addReporter(new Reporters.JUnitXmlReporter({
// savePath: __dirname,
// consolidateAll: false
// }));
jasmine.configureDefaultReporter({
// The `timer` passed to the reporter will determine the mechanism for seeing how long the suite takes to run.
timer: new jasmine.jasmine.Timer(),
// The `print` function passed the reporter will be called to print its results.
print: function(arguments) {
process.stdout.write(arguments);
},
// `showColors` determines whether or not the reporter should use ANSI color codes.
showColors: true
});
jasmine.onComplete(function (passed) {
if (passed) {
console.log('All specs have passed');
} else {
console.log('At least one spec has failed');
}
});
jasmine.execute();