mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Add assert for multi-segment prefix
This commit is contained in:
@@ -11,6 +11,7 @@ describe "TextMateScopeSelector", ->
|
||||
it "matches prefixes", ->
|
||||
expect(new TextMateScopeSelector('a').matches(['a'])).toBeTruthy()
|
||||
expect(new TextMateScopeSelector('a').matches(['a.b'])).toBeTruthy()
|
||||
expect(new TextMateScopeSelector('a.b').matches(['a.b.c'])).toBeTruthy()
|
||||
expect(new TextMateScopeSelector('a').matches(['abc'])).toBeFalsy()
|
||||
|
||||
it "matches disjunction", ->
|
||||
|
||||
Reference in New Issue
Block a user