Skip to content

Commit

Permalink
❓ add CSS selector tests for the argument operator
Browse files Browse the repository at this point in the history
This is just an example, they don't work yet.
  • Loading branch information
bronson committed Apr 20, 2017
1 parent ffb62bb commit a22035a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion spec/text-object-spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -1747,7 +1747,14 @@ describe "TextObject", ->
}
"""

describe 'slingle line comma separated text', ->
describe 'without parentheses', ->
fit "css selectors", ->
set textC: "atom-te|xt-editor, :host {\n}"; ensure 'd a ,', textC: ":host {\n}"
set textC: "atom-text-editor, :ho|st {\n}"; ensure 'd a ,', textC: "atom-text-editor {\n}"
set textC: "atom-te|xt-editor .gutter, :host .gutter {\n}"; ensure 'd a ,', textC: ":host .gutter {\n}"
set textC: "atom-text-editor .gutter, :ho|st .gutter {\n}"; ensure 'd a ,', textC: "atom-text-editor .gutter {\n}"

describe 'single line comma separated text', ->
describe "change 1st arg", ->
beforeEach -> set textC: "var a = func(f|irst(1, 2, 3), second(), 3)"
it 'change', -> ensure 'c i ,', textC: "var a = func(|, second(), 3)"
Expand Down

0 comments on commit a22035a

Please sign in to comment.