Skip to content

Commit ad34aa1

Browse files
authored
Merge pull request #378 from HarperFast/fix-formatting
chore(style): fix formatting
2 parents 4046c0a + f6f3345 commit ad34aa1

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

src/index.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ export { RocksDatabase, type RocksDatabaseOptions } from './database.js';
44
export { DBIterator } from './dbi-iterator.js';
55
export type { IteratorOptions } from './dbi.js';
66
export type { Key } from './encoding.js';
7-
export { constants, registryStatus, shutdown, type TransactionEntry, TransactionLog } from './load-binding.js';
7+
export {
8+
constants,
9+
registryStatus,
10+
shutdown,
11+
type TransactionEntry,
12+
TransactionLog,
13+
} from './load-binding.js';
814
export * from './parse-transaction-log.js';
915
export { type Context, Store } from './store.js';
1016
export { Transaction } from './transaction.js';

test/shutdown.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
import { describe, expect, it } from 'vitest';
2-
import { dbRunner } from './lib/util.js';
32
import { registryStatus, shutdown } from '../src/index.js';
3+
import { dbRunner } from './lib/util.js';
44

55
describe('Shutdown', () => {
66
it('should shutdown rocksdb-js', () =>
7-
dbRunner({
8-
dbOptions: [{}, { name: 'test' }],
9-
}, async ({ db }, { db: db2 }) => {
7+
dbRunner({ dbOptions: [{}, { name: 'test' }] }, async ({ db }, { db: db2 }) => {
108
expect(db.isOpen()).toBe(true);
119
expect(db2.isOpen()).toBe(true);
1210
let status = registryStatus();

0 commit comments

Comments
 (0)