1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2025-12-06 10:08:52 +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)
VALUES
( 1, 'Harry Potter', 'Griffindor'),
( 2, 'Draco Malfoy', 'Slytherin');
( 1, 'Harry Potter', 'Griffindor'),
( 2, 'Draco Malfoy', 'Slytherin');
`)
const data = database.export()
@@ -111,8 +111,8 @@ describe('database.js', () => {
);
INSERT INTO test (id, name, faculty)
VALUES
( 1, 'Harry Potter', 'Griffindor'),
( 2, 'Draco Malfoy', 'Slytherin');
( 1, 'Harry Potter', 'Griffindor'),
( 2, 'Draco Malfoy', 'Slytherin');
`)
const data = database.export()

View File

@@ -46,7 +46,7 @@ describe('storedQueries.js', () => {
const tab = {
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', () => {
@@ -54,7 +54,7 @@ describe('storedQueries.js', () => {
initName: null,
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', () => {
@@ -62,6 +62,7 @@ describe('storedQueries.js', () => {
initName: 'foo',
isPredefined: true
}
expect(storedQueries.isTabNeedName(tab)).to.be.true
expect(storedQueries.isTabNeedName(tab)).to.equal(true)
})
})