mirror of
https://github.com/LukeHagar/plex-api-oauth.git
synced 2025-12-09 20:47:44 +00:00
Node_modules
This commit is contained in:
1
node_modules/plex-oauth/build/test/index.spec.d.ts
generated
vendored
Normal file
1
node_modules/plex-oauth/build/test/index.spec.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export {};
|
||||
29
node_modules/plex-oauth/build/test/index.spec.js
generated
vendored
Normal file
29
node_modules/plex-oauth/build/test/index.spec.js
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var src_1 = require("../src");
|
||||
describe("Module", function () {
|
||||
var plexOauth = new src_1.PlexOauth({
|
||||
clientIdentifier: "dhjoasoidjapoiwdmamlw",
|
||||
device: "TEST DEVICE",
|
||||
product: "TEST DEVICE",
|
||||
version: "1",
|
||||
forwardUrl: "https://localhost/"
|
||||
});
|
||||
it("loads and initializes", function () {
|
||||
expect(plexOauth).toBeDefined();
|
||||
});
|
||||
it("returns a hosted ui link and poll for an auth token", function () {
|
||||
plexOauth.requestHostedLoginURL().then(function (response) {
|
||||
var hostedUiLink = response[0], pinId = response[1];
|
||||
expect(hostedUiLink).toBeDefined();
|
||||
expect(hostedUiLink).toContain("https://app.plex.tv/auth");
|
||||
expect(hostedUiLink).not.toContain("undefined");
|
||||
expect(hostedUiLink).not.toContain("null");
|
||||
plexOauth.checkForAuthToken(pinId, 1000, 1).then(function (pinResponse) {
|
||||
var authToken = pinResponse;
|
||||
expect(authToken).toBeNull();
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
//# sourceMappingURL=index.spec.js.map
|
||||
1
node_modules/plex-oauth/build/test/index.spec.js.map
generated
vendored
Normal file
1
node_modules/plex-oauth/build/test/index.spec.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../../test/index.spec.ts"],"names":[],"mappings":";;AAAA,8BAAmC;AAEnC,QAAQ,CAAC,QAAQ,EAAE;IACf,IAAI,SAAS,GAAG,IAAI,eAAS,CAAC;QAC1B,gBAAgB,EAAE,uBAAuB;QACzC,MAAM,EAAE,aAAa;QACrB,OAAO,EAAE,aAAa;QACtB,OAAO,EAAE,GAAG;QACZ,UAAU,EAAE,oBAAoB;KACnC,CAAC,CAAC;IAEH,EAAE,CAAC,uBAAuB,EAAE;QACxB,MAAM,CAAC,SAAS,CAAC,CAAC,WAAW,EAAE,CAAC;IACpC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,qDAAqD,EAAE;QACtD,SAAS,CAAC,qBAAqB,EAAE,CAAC,IAAI,CAAC,UAAA,QAAQ;YACtC,IAAA,YAAY,GAAW,QAAQ,GAAnB,EAAE,KAAK,GAAI,QAAQ,GAAZ,CAAa;YAErC,MAAM,CAAC,YAAY,CAAC,CAAC,WAAW,EAAE,CAAC;YACnC,MAAM,CAAC,YAAY,CAAC,CAAC,SAAS,CAAC,0BAA0B,CAAC,CAAC;YAC3D,MAAM,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;YAChD,MAAM,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;YAE3C,SAAS,CAAC,iBAAiB,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,UAAA,WAAW;gBACxD,IAAI,SAAS,GAAG,WAAW,CAAC;gBAE5B,MAAM,CAAC,SAAS,CAAC,CAAC,QAAQ,EAAE,CAAC;YACjC,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
||||
Reference in New Issue
Block a user