LIBRARY DATA MAAAAAN

Used this guide https://www.youtube.com/watch?v=H-BiAoE4emk&ab_channel=willjw3

Converted the issue Library data function to for of instead of forEach or Map
This commit is contained in:
luke-hagar-sp
2022-07-27 09:40:14 -05:00
parent 6a94488dbe
commit 7a189afbb4
3 changed files with 73 additions and 40 deletions

View File

@@ -39,12 +39,20 @@ describe("Login Test", function () {
console.log(PlexSession.plexServers);
});
it("Get Plex Libraries", async function () {
//this.timeout(10000);
this.timeout(10000);
let response = await PlexSession.GetPlexLibraries();
assert.notEqual(PlexSession.plexLibraries, null);
assert.notEqual(PlexSession.plexLibraries, undefined);
assert.notEqual(PlexSession.plexLibraries, emptyArray);
assert.notEqual(await response, null);
assert.notEqual(PlexSession.plexMusicLibraries, null);
assert.notEqual(PlexSession.plexMusicLibraries, undefined);
assert.notEqual(PlexSession.plexMusicLibraries, emptyArray);
assert.notEqual(PlexSession.plexMovieLibraries, null);
assert.notEqual(PlexSession.plexMovieLibraries, undefined);
assert.notEqual(PlexSession.plexMovieLibraries, emptyArray);
assert.notEqual(PlexSession.plexTVShowLibraries, null);
assert.notEqual(PlexSession.plexTVShowLibraries, undefined);
assert.notEqual(PlexSession.plexTVShowLibraries, emptyArray);
console.log("Plex Libraries");
console.log(PlexSession.plexLibraries);
});