From a6b67884c1e568f95ff5c132b7ebaa68edbe2b89 Mon Sep 17 00:00:00 2001 From: Harminder Virk Date: Thu, 29 Jun 2017 15:54:13 +0530 Subject: [PATCH] ci(windows): fix typo error in process.platform --- test/unit/database.spec.js | 3 +-- test/unit/lucid-belongs-to.spec.js | 2 +- test/unit/lucid-has-many.spec.js | 2 +- test/unit/lucid-relations.spec.js | 2 +- test/unit/lucid-serializer.spec.js | 2 +- test/unit/lucid.spec.js | 2 +- 6 files changed, 6 insertions(+), 7 deletions(-) diff --git a/test/unit/database.spec.js b/test/unit/database.spec.js index 14d9f6a0..ceda4a59 100644 --- a/test/unit/database.spec.js +++ b/test/unit/database.spec.js @@ -31,8 +31,7 @@ test.group('Database | QueryBuilder', (group) => { try { await fs.remove(path.join(__dirname, './tmp')) } catch (error) { - if (process.plaform !== 'win32' || error.code !== 'EBUSY') { - console.log(error.code, process.plaform) + if (process.platform !== 'win32' || error.code !== 'EBUSY') { throw error } } diff --git a/test/unit/lucid-belongs-to.spec.js b/test/unit/lucid-belongs-to.spec.js index 06cc14de..f52096dd 100644 --- a/test/unit/lucid-belongs-to.spec.js +++ b/test/unit/lucid-belongs-to.spec.js @@ -47,7 +47,7 @@ test.group('Relations | Belongs To', (group) => { try { await fs.remove(path.join(__dirname, './tmp')) } catch (error) { - if (process.plaform !== 'win32' || error.code !== 'EBUSY') { + if (process.platform !== 'win32' || error.code !== 'EBUSY') { throw error } } diff --git a/test/unit/lucid-has-many.spec.js b/test/unit/lucid-has-many.spec.js index 7047b516..b55e4d37 100644 --- a/test/unit/lucid-has-many.spec.js +++ b/test/unit/lucid-has-many.spec.js @@ -47,7 +47,7 @@ test.group('Relations | Has Many', (group) => { try { await fs.remove(path.join(__dirname, './tmp')) } catch (error) { - if (process.plaform !== 'win32' || error.code !== 'EBUSY') { + if (process.platform !== 'win32' || error.code !== 'EBUSY') { throw error } } diff --git a/test/unit/lucid-relations.spec.js b/test/unit/lucid-relations.spec.js index c52e5f28..b3f80575 100644 --- a/test/unit/lucid-relations.spec.js +++ b/test/unit/lucid-relations.spec.js @@ -49,7 +49,7 @@ test.group('Relations | HasOne', (group) => { try { await fs.remove(path.join(__dirname, './tmp')) } catch (error) { - if (process.plaform !== 'win32' || error.code !== 'EBUSY') { + if (process.platform !== 'win32' || error.code !== 'EBUSY') { throw error } } diff --git a/test/unit/lucid-serializer.spec.js b/test/unit/lucid-serializer.spec.js index 64a2a519..b36fccc8 100644 --- a/test/unit/lucid-serializer.spec.js +++ b/test/unit/lucid-serializer.spec.js @@ -48,7 +48,7 @@ test.group('Relations | Serializer', (group) => { try { await fs.remove(path.join(__dirname, './tmp')) } catch (error) { - if (process.plaform !== 'win32' || error.code !== 'EBUSY') { + if (process.platform !== 'win32' || error.code !== 'EBUSY') { throw error } } diff --git a/test/unit/lucid.spec.js b/test/unit/lucid.spec.js index 1430942c..31408817 100644 --- a/test/unit/lucid.spec.js +++ b/test/unit/lucid.spec.js @@ -48,7 +48,7 @@ test.group('Model', (group) => { try { await fs.remove(path.join(__dirname, './tmp')) } catch (error) { - if (process.plaform !== 'win32' || error.code !== 'EBUSY') { + if (process.platform !== 'win32' || error.code !== 'EBUSY') { throw error } }