Skip to content

Commit

Permalink
adjusting tests
Browse files Browse the repository at this point in the history
  • Loading branch information
agzam committed Nov 11, 2023
1 parent f102a03 commit 1a46637
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions neil-tests.el
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@
((eq shell-cmd-calls 1)
(expect command :to-equal "/bin/neil dep search test-pkg")
(concat
":lib foo/test-pkg :version 1.0.0 :description \"good lib\"\n"
":lib bar/awesome-test-pkg :version 2.1.0 :description \"better lib\"\n"))
":lib foo/test-pkg :version \"1.0.0\" :description \"good lib\"\n"
":lib bar/awesome-test-pkg :version \"2.1.0\" :description \"better lib\"\n"))

((eq shell-cmd-calls 2)
(expect command :to-equal "/bin/neil dep versions foo/test-pkg")
(concat
":lib foo/test-pkg :version 1.0.0\n"
":lib bar/awesome-test-pkg :version 2.1.0\n")))))
":lib foo/test-pkg :version \"1.0.0\"\n"
":lib bar/awesome-test-pkg :version \"2.1.0\"\n")))))
(spy-on #'neil-search-annotation-fn)
(spy-on #'completing-read
:and-call-fake
Expand All @@ -64,8 +64,12 @@
((eq prompt-calls 1)
(expect prompt :to-equal "Found 2 matches for 'test-pkg':")
(expect coll :to-equal
'(("foo/test-pkg" (version . "1.0.0") (description . "\"good lib\""))
("bar/awesome-test-pkg" (version . "2.1.0") (description . "\"better lib\""))))
'(("foo/test-pkg"
(version . "\"1.0.0\"")
(description . "\"good lib\""))
("bar/awesome-test-pkg"
(version . "\"2.1.0\"")
(description . "\"better lib\""))))
"foo/test-pkg")

((eq prompt-calls 2)
Expand Down

0 comments on commit 1a46637

Please sign in to comment.