Tooling update (#184)

* Use a common Makefile/build process

* Use ESLint with the pa11y lint config
This commit is contained in:
Rowan Manning
2017-03-21 13:41:46 +00:00
committed by GitHub
parent e27e129677
commit b24076abf1
39 changed files with 370 additions and 375 deletions

View File

@@ -21,11 +21,11 @@ const assert = require('proclaim');
describe('GET /new', function() {
beforeEach(function(done) {
const req = {
const request = {
method: 'GET',
endpoint: '/new'
};
this.navigate(req, done);
this.navigate(request, done);
});
it('should send a 200 status', function() {
@@ -122,7 +122,7 @@ describe('POST /new', function() {
describe('with invalid query', function() {
beforeEach(function(done) {
const req = {
const request = {
method: 'POST',
endpoint: '/new',
form: {
@@ -130,7 +130,7 @@ describe('POST /new', function() {
url: ''
}
};
this.navigate(req, done);
this.navigate(request, done);
});
it('should send a 200 status', function() {
@@ -146,7 +146,7 @@ describe('POST /new', function() {
describe('with valid query', function() {
beforeEach(function(done) {
const req = {
const request = {
method: 'POST',
endpoint: '/new',
form: {
@@ -155,7 +155,7 @@ describe('POST /new', function() {
standard: 'WCAG2AA'
}
};
this.navigate(req, done);
this.navigate(request, done);
});
it('should send a 200 status', function() {
@@ -163,9 +163,9 @@ describe('POST /new', function() {
});
it('should create the task', function(done) {
this.webservice.tasks.get({}, function(err, tasks) {
this.webservice.tasks.get({}, function(error, tasks) {
assert.strictEqual(tasks.length, 4);
done();
done(error);
});
});