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:
@@ -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()
|
||||||
|
|||||||
@@ -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)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user