Skip to content

Instantly share code, notes, and snippets.

@plrenaudin
Created July 8, 2015 21:06
Show Gist options
  • Save plrenaudin/c8dace4edeb5ea58c949 to your computer and use it in GitHub Desktop.
Save plrenaudin/c8dace4edeb5ea58c949 to your computer and use it in GitHub Desktop.
scorer spec
it "returns the result in order", ->
candidates = [
'Find And Replace: Selet All',
'Settings View: Uninstall Packages',
'Application: Install Update',
'install'
]
result = filter(candidates, 'install')
expect(result[0]).toBe candidates[3]
expect(result[1]).toBe candidates[2]
expect(result[2]).toBe candidates[1]
expect(result[3]).toBe candidates[0]
@walles
Copy link

walles commented Jul 9, 2015

I'd like to have "Settings View: View Installed Themes" added to this list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment