Skip to content

Commit

Permalink
✅ Test: Fix code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
jy95 committed Jan 20, 2018
1 parent a74a921 commit 270a8b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/TorrentLibrary.js
Expand Up @@ -545,12 +545,15 @@ class TorrentLibrary extends EventEmitter {
static createFromJSON(json) {
let config = json;
// transform the param
/* istanbul ignore else */
if (json.allFilesWithCategory) {
config.allFilesWithCategory = new Map(json.allFilesWithCategory);
}
/* istanbul ignore else */
if (json.movies) {
config.movies = new Set(json.movies);
}
/* istanbul ignore else */
if (json['tv-series']) {
let createdMap = new Map();
for (let [serieTitle, setSerie] of json['tv-series']) {
Expand Down

0 comments on commit 270a8b7

Please sign in to comment.