-
Notifications
You must be signed in to change notification settings - Fork 717
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add test to sonar.ts #154
Add test to sonar.ts #154
Conversation
tests/lib/sonar.ts
Outdated
t.false(t.context.resourceLoader.getRules.called); | ||
}); | ||
|
||
test('If conflig.plugins is an array we should create just those plugins', (t) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
config
tests/lib/sonar.ts
Outdated
t.is(t.context.eventemitter.prototype.on.args[2][0], 'fetch::error'); | ||
}); | ||
|
||
test('If conflig.rules is an array of ids we should create just those rules', (t) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
config
tests/lib/sonar.ts
Outdated
t.is(sonarObject.pageContent, html); | ||
}); | ||
|
||
test.serial('pageHeaders should return the HTML', async (t) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should return the page's response headers
tests/lib/sonar.ts
Outdated
|
||
import test from 'ava'; | ||
import * as sinon from 'sinon'; | ||
import * as proxyquire from 'proxyquire'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import * as proxyquire from 'proxyquire';
import * as sinon from 'sinon';
import test from 'ava';
Fix how plugins are loaded Activate eol-last in eslint rules -------------------------- Fix #5
Haha Note: You can also make your text editor/IDE take into account the properties from the |
@alrra I thought that vscode took int account the .editorconfig... I've just installed a plugin to use it :) |
Fix how we load plugins
Fix #5