Skip to content

Commit fa5d1ba

Browse files
committed
❓ add CSS selector tests for the argument operator
This is just an example, they don't work yet.
1 parent ffb62bb commit fa5d1ba

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

spec/text-object-spec.coffee

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1747,7 +1747,14 @@ describe "TextObject", ->
17471747
}
17481748
"""
17491749

1750-
describe 'slingle line comma separated text', ->
1750+
describe 'without parentheses', ->
1751+
it "works with css selectors", ->
1752+
set textC: "atom-te|xt-editor, :host {\n}"; ensure 'd a ,', textC: ":host {\n}"
1753+
set textC: "atom-text-editor, :ho|st {\n}"; ensure 'd a ,', textC: "atom-text-editor {\n}"
1754+
set textC: "atom-te|xt-editor .gutter, :host .gutter {\n}"; ensure 'd a ,', textC: ":host .gutter {\n}"
1755+
set textC: "atom-text-editor .gutter, :ho|st .gutter {\n}"; ensure 'd a ,', textC: "atom-text-editor .gutter {\n}"
1756+
1757+
describe 'single line comma separated text', ->
17511758
describe "change 1st arg", ->
17521759
beforeEach -> set textC: "var a = func(f|irst(1, 2, 3), second(), 3)"
17531760
it 'change', -> ensure 'c i ,', textC: "var a = func(|, second(), 3)"

0 commit comments

Comments
 (0)