diff options
| author | Marak <[email protected]> | 2021-03-22 16:31:25 -0400 |
|---|---|---|
| committer | Marak <[email protected]> | 2021-03-22 16:31:25 -0400 |
| commit | 10dd7e30cf49f03c34da1ab540df2172be40c8ea (patch) | |
| tree | a2ebc6179065775a9466a2148eb05a00fe6d23f7 /test/database.unit.js | |
| parent | 0b75623dac94f6062ae623fa8bbfe0e81b205d4d (diff) | |
| download | faker-10dd7e30cf49f03c34da1ab540df2172be40c8ea.tar.xz faker-10dd7e30cf49f03c34da1ab540df2172be40c8ea.zip | |
Linting fixes for `./test`
Diffstat (limited to 'test/database.unit.js')
| -rw-r--r-- | test/database.unit.js | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/test/database.unit.js b/test/database.unit.js index b3955fea..9d1dbcb2 100644 --- a/test/database.unit.js +++ b/test/database.unit.js @@ -1,51 +1,51 @@ if (typeof module !== 'undefined') { - var assert = require('assert'); - var sinon = require('sinon'); - var faker = require('../index'); + var assert = require('assert'); + var sinon = require('sinon'); + var faker = require('../index'); } describe("database.js", function () { - describe("column()", function () { - it("returns a column name", function () { - sinon.stub(faker.database, 'column').returns('title'); - var column = faker.database.column(); - var expected = 'title'; - - assert.strictEqual(column, expected, "The column name should be equals " + expected + ". Current is " + column); - faker.database.column.restore(); - }); + describe("column()", function () { + it("returns a column name", function () { + sinon.stub(faker.database, 'column').returns('title'); + var column = faker.database.column(); + var expected = 'title'; + + assert.strictEqual(column, expected, "The column name should be equals " + expected + ". Current is " + column); + faker.database.column.restore(); }); + }); - describe("collation()", function () { - it("returns a collation", function () { - sinon.stub(faker.database, 'collation').returns('utf8_bin'); - var collation = faker.database.collation(); - var expected = 'utf8_bin'; + describe("collation()", function () { + it("returns a collation", function () { + sinon.stub(faker.database, 'collation').returns('utf8_bin'); + var collation = faker.database.collation(); + var expected = 'utf8_bin'; - assert.strictEqual(collation, expected, "The collation should be equals " + expected + ". Current is " + collation); - faker.database.collation.restore(); - }); + assert.strictEqual(collation, expected, "The collation should be equals " + expected + ". Current is " + collation); + faker.database.collation.restore(); }); + }); - describe("engine()", function () { - it("returns an engine", function () { - sinon.stub(faker.database, 'engine').returns('InnoDB'); - var engine = faker.database.engine(); - var expected = 'InnoDB'; + describe("engine()", function () { + it("returns an engine", function () { + sinon.stub(faker.database, 'engine').returns('InnoDB'); + var engine = faker.database.engine(); + var expected = 'InnoDB'; - assert.strictEqual(engine, expected, "The db engine should be equals " + expected + ". Current is " + engine); - faker.database.engine.restore(); - }); + assert.strictEqual(engine, expected, "The db engine should be equals " + expected + ". Current is " + engine); + faker.database.engine.restore(); }); + }); - describe("type()", function () { - it("returns a column type", function () { - sinon.stub(faker.database, 'type').returns('int'); - var type = faker.database.type(); - var expected = 'int'; + describe("type()", function () { + it("returns a column type", function () { + sinon.stub(faker.database, 'type').returns('int'); + var type = faker.database.type(); + var expected = 'int'; - assert.strictEqual(type, expected, "The column type should be equals " + expected + ". Current is " + type); - faker.database.type.restore(); - }); + assert.strictEqual(type, expected, "The column type should be equals " + expected + ". Current is " + type); + faker.database.type.restore(); }); + }); }); |
