-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a4ddca0
commit f46c891
Showing
2 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
defmodule Makeup.Lexers.JsLexer.RegistryTest do | ||
use ExUnit.Case, async: true | ||
|
||
alias Makeup.Registry | ||
alias Makeup.Lexers.JsLexer | ||
|
||
describe "the Js lexer has successfully registered itself:" do | ||
test "language name" do | ||
assert {:ok, {JsLexer, []}} == Registry.fetch_lexer_by_name("js") | ||
assert {:ok, {JsLexer, []}} == Registry.fetch_lexer_by_name("javascript") | ||
end | ||
|
||
test "file extension" do | ||
assert {:ok, {JsLexer, []}} == Registry.fetch_lexer_by_extension("js") | ||
end | ||
end | ||
end |