Started by adding some system tests for the api.
This commit is contained in:
10
seasoned_api/test/helpers/createCacheEntry.js
Normal file
10
seasoned_api/test/helpers/createCacheEntry.js
Normal file
@@ -0,0 +1,10 @@
|
||||
const Cache = require('src/tmdb/cache');
|
||||
const SqliteDatabase = require('src/database/sqliteDatabase');
|
||||
|
||||
function createCacheEntry(key, value) {
|
||||
const database = new SqliteDatabase(':memory:');
|
||||
const cache = new Cache(database);
|
||||
return cache.set(key, value);
|
||||
}
|
||||
|
||||
module.exports = createCacheEntry;
|
||||
Reference in New Issue
Block a user