Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bertrandda committed Dec 12, 2024
1 parent 943b72e commit 49d69bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion server/services/google-cast/lib/google_cast.setValue.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ async function setValue(device, deviceFeature, value, options) {

player.on('status', async (status) => {
logger.debug('status broadcast playerState=%s', status.playerState);

if (status.idleReason === 'FINISHED') {
await setVolume({ level });

Check warning on line 55 in server/services/google-cast/lib/google_cast.setValue.js

View check run for this annotation

Codecov / codecov/patch

server/services/google-cast/lib/google_cast.setValue.js#L55

Added line #L55 was not covered by tests
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ class GoogleCastClient {
cb({ message: 'this is an error' });
}

// eslint-disable-next-line class-methods-use-this
getVolume(cb) {
cb(null, { level: 1 });
}

// eslint-disable-next-line class-methods-use-this
setVolume(volume, cb) {
cb(null, 30);
Expand Down

0 comments on commit 49d69bc

Please sign in to comment.