From d77debbaa8c2f379ec0b59c0a558e7012d86e538 Mon Sep 17 00:00:00 2001 From: Tim Griesser Date: Wed, 3 Sep 2014 16:09:20 -0400 Subject: [PATCH] Properly remove seed test file to prevent jshint warning --- test/integration/seed/index.js | 9 ++------- test/integration/seed/seeds/test.js | 5 ----- 2 files changed, 2 insertions(+), 12 deletions(-) delete mode 100644 test/integration/seed/seeds/test.js diff --git a/test/integration/seed/index.js b/test/integration/seed/index.js index 3f44e2fa3..503544679 100644 --- a/test/integration/seed/index.js +++ b/test/integration/seed/index.js @@ -1,4 +1,4 @@ -/*global after, describe, it, expect*/ +/*global describe, it, expect*/ 'use strict'; var path = require('path'); @@ -6,11 +6,10 @@ var rimraf = require('rimraf'); module.exports = function(knex) { - require('rimraf').sync(path.join(__dirname, './seed')); - describe('knex.seed.make', function() { it('should create a new seed file with the make method', function () { return knex.seed.make('test').then(function (name) { + rimraf.sync(path.dirname(name)); expect(path.basename(name)).to.equal('test.js'); }); }); @@ -25,8 +24,4 @@ module.exports = function(knex) { }); }); - after(function() { - rimraf.sync(path.join(__dirname, './seed')); - }); - }; diff --git a/test/integration/seed/seeds/test.js b/test/integration/seed/seeds/test.js deleted file mode 100644 index 5f72ccd1b..000000000 --- a/test/integration/seed/seeds/test.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -exports.seed = function(knex) { - knex('tableName').insert({colName: 'rowValue'}); -};