8000 Make tests independent of return values from osascript · Issue #7 · mischah/itunes-remote · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Make tests independent of return values from osascript #7
Open
@Haroenv

Description

@Haroenv

I was planning to contribute to the feature #6, but running tests without changing anything returned (among passing tests) this:

      ✓ should return »✔ Returned to previous track or beginning of current track.« (120ms)
    command `search`
      1) should return success message
      ✓ should return error message when no search results for all (111ms)
      ✓ should return error message when no search results for albums (151ms)
      ✓ should return error message when no search results for songs (146ms)
      ✓ should return error message when no search results for artists (139ms)
    command `getData`
      ✓ should return an object. (157ms)


  12 passing (2s)
  1 failing

  1) itunesRemote command `search` should return success message:

      Uncaught AssertionError: expected '\u001b[31m✖\u001b[39m Oops. Found 0 songs by ”\u001b[7memancipator\u001b[27m“.' to equal '\u001b[32m✔\u001b[39m Found songs by ”\u001b[7memancipator\u001b[27m“ and generated a temporary playlist'
      + expected - actual

      -✖ Oops. Found 0 songs by ”emancipator“.
      +✔ Found songs by ”emancipator“ and generated a temporary playlist

      at itunesRemote.searchterm (test.js:73:25)
      at index.js:194:12
      at index.js:138:13
      at PassThrough.<anonymous> (node_modules/osascript/index.js:63:12)
      at endReadableNT (_stream_readable.js:903:12)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0