Skip to content

Commit 69bbda0

Browse files
committed
Merge pull request #950 from varya/fix/757_scss-optional
Test for !optional in SCSS. Fix #757
2 parents 5a99d42 + 0d0d13c commit 69bbda0

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

test/unit/vendors/gonzales.test.js

+16
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,22 @@ describe('Gonzales', function() {
6363
});
6464
expect(ast).to.be.an('object');
6565
});
66+
67+
it('Should take !optional', ()=> {
68+
var str = `
69+
.foo { color: Red; }
70+
71+
.bar { @extend .foo; }
72+
73+
.foobar { @extend .foo !optional; }
74+
`;
75+
76+
ast = gonzales.parse(str, {
77+
syntax: 'scss'
78+
});
79+
expect(ast).to.be.an('object');
80+
});
81+
6682
});
6783

6884
describe('LESS', function() {

0 commit comments

Comments
 (0)