Update eslint rules
This commit is contained in:
@@ -35,7 +35,7 @@ describe('Email Integration Tests', function() {
|
||||
};
|
||||
});
|
||||
|
||||
describe("_sendHelper", () => {
|
||||
describe('_sendHelper', () => {
|
||||
it('should work', async () => {
|
||||
const mailOptions = {
|
||||
from: {name: email._sender.name, address: email._sender.email},
|
||||
@@ -49,7 +49,7 @@ describe('Email Integration Tests', function() {
|
||||
});
|
||||
});
|
||||
|
||||
describe("send verifyKey template", () => {
|
||||
describe('send verifyKey template', () => {
|
||||
it('should send plaintext email', async () => {
|
||||
delete userId.publicKeyArmored;
|
||||
await email.send({template: tpl.verifyKey, userId, keyId, origin});
|
||||
@@ -60,7 +60,7 @@ describe('Email Integration Tests', function() {
|
||||
});
|
||||
});
|
||||
|
||||
describe("send verifyRemove template", () => {
|
||||
describe('send verifyRemove template', () => {
|
||||
it('should send plaintext email', async () => {
|
||||
delete userId.publicKeyArmored;
|
||||
await email.send({template: tpl.verifyRemove, userId, keyId, origin});
|
||||
|
||||
@@ -28,7 +28,7 @@ describe('Mongo Integration Tests', function() {
|
||||
await mongo.disconnect();
|
||||
});
|
||||
|
||||
describe("create", () => {
|
||||
describe('create', () => {
|
||||
it('should insert a document', async () => {
|
||||
const r = await mongo.create({_id: '0'}, DB_TYPE);
|
||||
expect(r.insertedCount).to.equal(1);
|
||||
@@ -45,7 +45,7 @@ describe('Mongo Integration Tests', function() {
|
||||
});
|
||||
});
|
||||
|
||||
describe("batch", () => {
|
||||
describe('batch', () => {
|
||||
it('should insert a document', async () => {
|
||||
const r = await mongo.batch([{_id: '0'}, {_id: '1'}], DB_TYPE);
|
||||
expect(r.insertedCount).to.equal(2);
|
||||
@@ -62,7 +62,7 @@ describe('Mongo Integration Tests', function() {
|
||||
});
|
||||
});
|
||||
|
||||
describe("update", () => {
|
||||
describe('update', () => {
|
||||
it('should update a document', async () => {
|
||||
let r = await mongo.create({_id: '0'}, DB_TYPE);
|
||||
r = await mongo.update({_id: '0'}, {foo: 'bar'}, DB_TYPE);
|
||||
@@ -72,7 +72,7 @@ describe('Mongo Integration Tests', function() {
|
||||
});
|
||||
});
|
||||
|
||||
describe("get", () => {
|
||||
describe('get', () => {
|
||||
it('should get a document', async () => {
|
||||
let r = await mongo.create({_id: '0'}, DB_TYPE);
|
||||
r = await mongo.get({_id: '0'}, DB_TYPE);
|
||||
@@ -80,7 +80,7 @@ describe('Mongo Integration Tests', function() {
|
||||
});
|
||||
});
|
||||
|
||||
describe("list", () => {
|
||||
describe('list', () => {
|
||||
it('should list documents', async () => {
|
||||
let r = await mongo.batch([{_id: '0', foo: 'bar'}, {_id: '1', foo: 'bar'}], DB_TYPE);
|
||||
r = await mongo.list({foo: 'bar'}, DB_TYPE);
|
||||
@@ -88,7 +88,7 @@ describe('Mongo Integration Tests', function() {
|
||||
});
|
||||
});
|
||||
|
||||
describe("remove", () => {
|
||||
describe('remove', () => {
|
||||
it('should remove a document', async () => {
|
||||
let r = await mongo.create({_id: '0'}, DB_TYPE);
|
||||
r = await mongo.remove({_id: '0'}, DB_TYPE);
|
||||
|
||||
Reference in New Issue
Block a user