From c382abd0c94c0c58aaf68b848e427114e7d68be6 Mon Sep 17 00:00:00 2001
From: donal <donalspring@gmail.com>
Date: Mon, 26 Mar 2018 01:19:26 +0200
Subject: [PATCH] Moving stuff to more modern JS

---
 server/api/todo/todo.spec.js |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/server/api/todo/todo.spec.js b/server/api/todo/todo.spec.js
index 4542ab4..30538b6 100755
--- a/server/api/todo/todo.spec.js
+++ b/server/api/todo/todo.spec.js
@@ -1,7 +1,7 @@
 'use strict';
 
-var app = require('../../app');
-var request = require('supertest');
+const app = require('../../app');
+const request = require('supertest');
 require('should');
 
 describe('GET /api/todos', function() {
@@ -38,7 +38,7 @@
 });
 
 describe('GET /api/todos/:id', function() {
-  var todoId;
+  const todoId;
   beforeEach(function createObjectToUpdate(done) {
     request(app)
       .post('/api/todos')
@@ -86,7 +86,7 @@
 });
 
 describe('PUT /api/todos/:id', function() {
-  var todoId;
+  const todoId;
   beforeEach(function createObjectToUpdate(done){
     request(app)
       .post('/api/todos')
@@ -137,7 +137,7 @@
 });
 
 describe('DELETE /api/todos/:id', function() {
-  var todoId;
+  const todoId;
   beforeEach(function createObjectToUpdate(done){
     request(app)
       .post('/api/todos')

--
Gitblit v1.9.3