1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2025-12-06 18:18:53 +08:00

fix lint errors

This commit is contained in:
lana-k
2021-01-13 22:39:19 +01:00
parent fd6d7b8b3a
commit 8e73e526ec
2 changed files with 8 additions and 7 deletions

View File

@@ -73,8 +73,8 @@ describe('database.js', () => {
); );
INSERT INTO test (id, name, faculty) INSERT INTO test (id, name, faculty)
VALUES VALUES
( 1, 'Harry Potter', 'Griffindor'), ( 1, 'Harry Potter', 'Griffindor'),
( 2, 'Draco Malfoy', 'Slytherin'); ( 2, 'Draco Malfoy', 'Slytherin');
`) `)
const data = database.export() const data = database.export()
@@ -111,8 +111,8 @@ describe('database.js', () => {
); );
INSERT INTO test (id, name, faculty) INSERT INTO test (id, name, faculty)
VALUES VALUES
( 1, 'Harry Potter', 'Griffindor'), ( 1, 'Harry Potter', 'Griffindor'),
( 2, 'Draco Malfoy', 'Slytherin'); ( 2, 'Draco Malfoy', 'Slytherin');
`) `)
const data = database.export() const data = database.export()

View File

@@ -46,7 +46,7 @@ describe('storedQueries.js', () => {
const tab = { const tab = {
initName: 'foo' initName: 'foo'
} }
expect(storedQueries.isTabNeedName(tab)).to.be.false expect(storedQueries.isTabNeedName(tab)).to.equal(false)
}) })
it('isTabNeedName returns true when the query has no name and is not predefined', () => { it('isTabNeedName returns true when the query has no name and is not predefined', () => {
@@ -54,7 +54,7 @@ describe('storedQueries.js', () => {
initName: null, initName: null,
tempName: 'Untitled' tempName: 'Untitled'
} }
expect(storedQueries.isTabNeedName(tab)).to.be.true expect(storedQueries.isTabNeedName(tab)).to.equal(true)
}) })
it('isTabNeedName returns true when the qiery is predefined', () => { it('isTabNeedName returns true when the qiery is predefined', () => {
@@ -62,6 +62,7 @@ describe('storedQueries.js', () => {
initName: 'foo', initName: 'foo',
isPredefined: true isPredefined: true
} }
expect(storedQueries.isTabNeedName(tab)).to.be.true
expect(storedQueries.isTabNeedName(tab)).to.equal(true)
}) })
}) })