UNPKG

quaerateum

Version:

Simple typescript ORM for node.js based on data-mapper, unit-of-work and identity-map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JS.

17 lines (13 loc) 414 B
import { NullCacheAdapter } from '../lib/cache'; import { TEMP_DIR } from './bootstrap'; /** * @class FileCacheAdapterTest */ describe('NullCacheAdapter', () => { test('should ignore old cache', async () => { const origin = TEMP_DIR + '/.origin'; const cache = new NullCacheAdapter(); cache.set('cache-test-handle', 123, origin); expect(cache.get('cache-test-handle')).toBeNull(); }); });