UNPKG

cody-music

Version:

mac osx spotify and itunes music player controller, spotify audio features, itunes and spotify genre, and playlist control

29 lines 946 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const expect = require("chai").expect; const CodyMusic = require("../../index"); const util_1 = require("../util"); /** * Don't add "async" into the it condition. * i.e. it("description text", async (done) => { * // do stuff * }); * It will return the following error if you do. * "Error: Resolution method is overspecified. Specify a callback *or* return a Promise; not both." */ describe("recently playing tracks tests", () => { before(async () => { new util_1.TestUtil().initializeSpotifyConfig(); }); beforeEach(() => { // }); it("Delete track", async () => { const playlistId = "02CeibmnGve78e9nNlSnR9"; const trackId = "0nMvEL9CNSdeBwV3TgUGSi"; const result = await CodyMusic.removeTracksFromPlaylist(playlistId, [ trackId, ]); }); }); //# sourceMappingURL=test.js.map