Skip to content

Commit

Permalink
fix self ref recursion
Browse files Browse the repository at this point in the history
  • Loading branch information
azukaar committed Oct 19, 2018
1 parent c5bfe16 commit b0251dd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "electron-css",
"version": "0.13.2",
"version": "0.13.3",
"description": "Proper, framework agnostic Style in JS library, without any of the fuss of CSS",
"main": "dist/index.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ function createTargetStyle() {

const is = {};

pseudoFunctionsList.forEach((name) => is[name] = (arg) => `:${caseConvert(name)}(${arg})`.replace('(:', '('));
pseudoFunctionsList.forEach((name) => is[name] = (arg) => `:${caseConvert(name)}(${arg})`);

export {
CSS,
Expand Down
4 changes: 2 additions & 2 deletions tests/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,9 @@ describe('', () => {
}
});

expect(is.not(is.nthChild(1))).toBe(':not(nth-child(1))');
expect(is.not(is.nthChild(1))).toBe(':not(:nth-child(1))');
expect(getSheet().cssRules[0].style.color).toBe('red');
expect(getSheet().cssRules[1].selectorText).toBe('.class0:not(nth-child(1))');
expect(getSheet().cssRules[1].selectorText).toBe('.class0:not(:nth-child(1))');
});
});

Expand Down

0 comments on commit b0251dd

Please sign in to comment.