searls/jasmine-fixture

Hi, I am wondering, whether we can add multiple fixtures using affix?

Closed this issue · 2 comments

For example, what if I want to add html like:

<div id="test">
    <div id="test1"></div>
    <div id="test2"></div>
</div>

Currently if I call affix multipe times like

affix('div#test div#test1')
affix('div#test div#test2')

Then I will get only

<div id="test">
    <div id="test1"></div>
</div>

Maybe the affix method should be able to detect the save id, and add something to the existing fixture.

also maybe affix should support css selectors like

affix('div#test div#test1, div#test div#test2')

What do you think?

This should work fine already: affix('#test #test1+#test2') (specifying "div" is not necessary, since it's the default element created)

Oh, this is cool! Thanks man!