Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var
MESSAGES = require('lintspaces').MESSAGES,
path = require('path'),
exec = require('child_process').exec,
execOptions = {
cwd: path.join(__dirname, '..')
}
;
exports.tests = {
newlines_okay: function(test) {
test.expect(1);
exec('grunt lintspaces:newline_okay', execOptions, function(error, stdout) {
test.equal(
stdout.indexOf('lint free.') > -1,
true,
'newlines are fine.'
);