Use arrow functions in mocha tests

This commit is contained in:
Tankred Hase
2016-05-31 13:52:18 +02:00
parent c8db7388c3
commit 5c675474d7
5 changed files with 38 additions and 42 deletions

View File

@@ -15,7 +15,7 @@ describe('Email Integration Tests', function() {
let email, credentials;
before(function() {
before(() => {
try {
credentials = require('../../credentials.json');
} catch(e) {
@@ -37,7 +37,7 @@ describe('Email Integration Tests', function() {
});
});
describe("send", function() {
describe("send", () => {
it('should work', function *() {
let mailOptions = {
from: credentials.sender,
@@ -51,7 +51,7 @@ describe('Email Integration Tests', function() {
});
});
describe("sendVerifyKey", function() {
describe("sendVerifyKey", () => {
it('should work', function *() {
let options = {
userIds: [{