mirror of https://github.com/Hypfer/Valetudo.git
18 lines
564 B
JavaScript
18 lines
564 B
JavaScript
const Logger = require("../../../Logger");
|
|
const SpeakerTestCapability = require("../../../core/capabilities/SpeakerTestCapability");
|
|
|
|
/**
|
|
* @extends SpeakerTestCapability<import("../MockRobot")>
|
|
*/
|
|
class MockSpeakerTestCapability extends SpeakerTestCapability {
|
|
/**
|
|
* @returns {Promise<void>}
|
|
*/
|
|
async playTestSound() {
|
|
const volume = await this.robot.capabilities["SpeakerVolumeControlCapability"].getVolume();
|
|
Logger.info("Playing test sound at " + volume + " % volume");
|
|
}
|
|
}
|
|
|
|
module.exports = MockSpeakerTestCapability;
|