Skip to content

Commit

Permalink
test: Enable coffee tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Krems committed Aug 25, 2017
1 parent 1396cb1 commit 5eff6a0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/coffeelint/groupon/coffeelint.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "coffeelint-config-groupon"
"extends": "eslint-config-groupon/coffee"
}
13 changes: 12 additions & 1 deletion test/lint.test.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,28 @@
'use strict';

const assert = require('assert');
const childProcess = require('child_process');
const fs = require('fs');
const path = require('path');
const { promisify } = require('util');

const coffeelint = require('coffeelint');
const globby = require('globby');
const CLIEngine = require('eslint').CLIEngine;

const CoffeeConfig = require('../coffee');

const readFile = promisify(fs.readFile);
const execFile = promisify(childProcess.execFile);

const GROUPS = [
{ type: 'coffee' },
{
type: 'coffee',
async validate(filename, content) {
const lintErrors = coffeelint.lint(content, CoffeeConfig);
assert.deepEqual([], lintErrors);
},
},
{ type: 'css' },
{
type: 'js',
Expand Down

0 comments on commit 5eff6a0

Please sign in to comment.