kratiahuja / broccoli-tslinter

Broccoli Plugin to run linter on typescript files. Uses tslint internally.
MIT License
9 stars 6 forks source link

Fix aot-test-generators usage #28

Closed inkless closed 6 years ago

inkless commented 6 years ago

The test generated are missing the ending bracket:

describe('TSLint - .', function() {
  it('errorFile1.ts should pass tslint', function() {
    // test failed
    var error = new chai.AssertionError('errorFile1.ts should pass tslint.\\nERROR: errorFile1.ts[1, 17]: trailing whitespace (no-trailing-whitespace)');
    error.stack = undefined;
    throw error;
  });

it should be:

describe('TSLint - .', function() {
  it('errorFile1.ts should pass tslint', function() {
    // test failed
    var error = new chai.AssertionError('errorFile1.ts should pass tslint.\\nERROR: errorFile1.ts[1, 17]: trailing whitespace (no-trailing-whitespace)');
    error.stack = undefined;
    throw error;
  });
});
kratiahuja commented 6 years ago

@t-sauer mind reviewing?

t-sauer commented 6 years ago

Looks good 👍