Started by adding some system tests for the api.

This commit is contained in:
2017-12-20 20:47:32 +01:00
parent 790f5d6588
commit 99ddb61c37
13 changed files with 629 additions and 0 deletions

View 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;