Skip to content

Commit

Permalink
test_templates: simplify and rename module
Browse files Browse the repository at this point in the history
  • Loading branch information
birkenfeld committed Oct 30, 2020
1 parent 194eeb4 commit 2fe2152
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions tests/test_djangojavascript_lexer.py → tests/test_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,11 @@ def test_do_not_mistake_JSDoc_for_django_comment(lexer):
*/
func = function(cool) {
};
/**
* @param {*} stuff
*/
fun = function(stuff) {
};"""
tokens = list(lexer.get_tokens(text))
assert (
(
Comment,
"""{*} cool
*/
func = function(cool) {
};
/**
* @param {*}""",
)
not in tokens
)
tokens = lexer.get_tokens(text)
assert not any(t[0] == Comment for t in tokens)

0 comments on commit 2fe2152

Please sign in to comment.