Skip to content

Commit

Permalink
feat: add skip as alias for next (#61)
Browse files Browse the repository at this point in the history
* feat: alias skip now hits next

* feat: skip is nice
  • Loading branch information
Jimjardland authored and believer committed Oct 5, 2019
1 parent 90a18de commit 30d0ed5
Show file tree
Hide file tree
Showing 6 changed files with 311 additions and 359 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ This will compile the Reason code and start up the Express app.
| `help` | | Display the help text |
| `mute` | | Mute |
| `mostplayed` | | List the most played tracks (requires MySQL database) |
| `next` | | Skip one track forward |
| `next` | `skip` | Skip one track forward |
| `nowplaying` | `np` | Display what's playing right now |
| `remove <numberOfTracks> <index>` | `rm` | Remove tracks |
| `pause` | | Pause |
Expand Down
4 changes: 4 additions & 0 deletions __tests__/Commands_test.re
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ describe("#make", () => {
expect(make(Some("next"))) |> toEqual(Next)
);

test("skip", () =>
expect(make(Some("skip"))) |> toEqual(Next)
);

test("np (nowplaying short-hand)", () =>
expect(make(Some("np"))) |> toEqual(NowPlaying)
);
Expand Down
2 changes: 1 addition & 1 deletion lib/js/__tests__/__snapshots__/Messages_test.bs.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Then paste that information straight to me and I'll queue them for you. :notes:
\`\`\`
clear ______________________________ Reset playlist
mute _______________________________ Mute
next _______________________________ Skip one track forward
next|skip __________________________ Skip one track forward
pause ______________________________ Pause
play _______________________________ Play
playtrack <trackNumber> ____________ Play track number
Expand Down
Loading

0 comments on commit 30d0ed5

Please sign in to comment.