File size: 387 Bytes
11486ce
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { ImageDB } from './db';
import assert from 'node:assert/strict';
import { describe, it } from 'node:test';

describe('ImageDB schema', () => {
    it('keeps full images and thumbnails in separate stores', () => {
        const imageDb = new ImageDB();

        assert.ok(imageDb.images);
        assert.ok(imageDb.thumbnails);
        assert.equal(imageDb.verno, 2);
    });
});