UNPKG

cody-music

Version:

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

32 lines 1.06 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const expect = require("chai").expect; const CodyMusic = require("../../index"); const models_1 = require("../../lib/models"); const util_1 = require("../util"); const util_2 = require("../../lib/util"); const musicUtil = new util_2.MusicUtil(); /** * 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(); musicUtil.sleep(1500); }); beforeEach(() => { // }); it("Mute volume", async () => { await CodyMusic.mute(models_1.PlayerName.SpotifyWeb); }); it("Unmute volume", async () => { await CodyMusic.unMute(models_1.PlayerName.SpotifyWeb); }); }); //# sourceMappingURL=test.js.map