From f820075e9c25d9dffd4c030d1ceb3bd0072c1db2 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sun, 1 Mar 2015 15:22:40 +0200 Subject: [PATCH] Remove extra commas. --- lib/imports/inliner.js | 2 +- lib/selectors/source-map-stringifier.js | 2 +- test/integration-test.js | 2 +- test/selectors/optimizer-test.js | 2 +- test/selectors/optimizers/simple-test.js | 2 +- test/selectors/tokenizer-source-maps-test.js | 4 ++-- test/selectors/tokenizer-test.js | 2 +- test/source-map-test.js | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/imports/inliner.js b/lib/imports/inliner.js index 9b6004e9..697388c6 100644 --- a/lib/imports/inliner.js +++ b/lib/imports/inliner.js @@ -321,7 +321,7 @@ function inlineLocalResource(importedFile, mediaQuery, context) { importedData = '@media ' + mediaQuery + '{' + importedData + '}'; var newContext = override(context, { - relativeTo: importRelativeTo, + relativeTo: importRelativeTo }); return importFrom(importedData, newContext); diff --git a/lib/selectors/source-map-stringifier.js b/lib/selectors/source-map-stringifier.js index 3dcdad42..a2d38896 100644 --- a/lib/selectors/source-map-stringifier.js +++ b/lib/selectors/source-map-stringifier.js @@ -119,7 +119,7 @@ Rebuilder.prototype.trackMetadata = function (metadata, value, allowNFallbacks) this.outputMap.addMapping({ generated: { line: this.line, - column: this.column, + column: this.column }, source: this.stylingSourceFor(original, metadata) || '__stdin__.css', original: { diff --git a/test/integration-test.js b/test/integration-test.js index 08607d4c..adccfdfc 100644 --- a/test/integration-test.js +++ b/test/integration-test.js @@ -1084,7 +1084,7 @@ path")}', 'keeps urls the same': [ '@import url(base.css);', 'a{background:url(../partials/extra/down.gif)no-repeat}' - ], + ] }, { target: path.join(process.cwd(), 'test.css'), relativeTo: path.join('test', 'fixtures', 'partials-relative'), diff --git a/test/selectors/optimizer-test.js b/test/selectors/optimizer-test.js index 80ac5301..3cb85b46 100644 --- a/test/selectors/optimizer-test.js +++ b/test/selectors/optimizer-test.js @@ -207,7 +207,7 @@ vows.describe(SelectorsOptimizer) 'whitespace body': [ 'a{ \n }', '' - ], + ] }) ) .addBatch( diff --git a/test/selectors/optimizers/simple-test.js b/test/selectors/optimizers/simple-test.js index 813de290..648f8d5b 100644 --- a/test/selectors/optimizers/simple-test.js +++ b/test/selectors/optimizers/simple-test.js @@ -492,7 +492,7 @@ vows.describe(SimpleOptimizer) 'rect zeros with commas': [ 'a{clip:rect(0px, 0px, 0px, 0px)}', ['clip:rect(0,0,0,0)'] - ], + ] }) ) .addBatch( diff --git a/test/selectors/tokenizer-source-maps-test.js b/test/selectors/tokenizer-source-maps-test.js index 39bf5fb2..8968eb85 100644 --- a/test/selectors/tokenizer-source-maps-test.js +++ b/test/selectors/tokenizer-source-maps-test.js @@ -295,7 +295,7 @@ vows.describe('source-maps/analyzer') kind: 'selector', value: [{ value: 'a', metadata: { line: 1, column: 25, source: undefined } }], body: [{ value: 'color:red', metadata: { line: 1, column: 27, source: undefined } }] - }, + } ] }, { @@ -336,7 +336,7 @@ vows.describe('source-maps/analyzer') metadata: { line: 2, column: 0, source: undefined }, isFlatBlock: true, body: [ - { value: 'font-family:"Font"', metadata: { line: 3, column: 1, source: undefined } }, + { value: 'font-family:"Font"', metadata: { line: 3, column: 1, source: undefined } } ] } ] diff --git a/test/selectors/tokenizer-test.js b/test/selectors/tokenizer-test.js index 0d8df0c3..7c34885f 100644 --- a/test/selectors/tokenizer-test.js +++ b/test/selectors/tokenizer-test.js @@ -298,7 +298,7 @@ vows.describe(Tokenizer) selector: 'a,\n\ndiv.class > p ', selectorsList: ['a', '\n\ndiv.class > p '] } - }], + }] ], 'two selectors': [ 'a{color:red}div{color:blue}', diff --git a/test/source-map-test.js b/test/source-map-test.js index 8e1bc099..477482ed 100644 --- a/test/source-map-test.js +++ b/test/source-map-test.js @@ -473,7 +473,7 @@ vows.describe('source-map') return mapping.source == 'styles.less'; }); assert.lengthOf(stylesSource, 2); - }, + } }, 'nested once': { 'topic': new CleanCSS({ sourceMap: true }).minify('@import url(test/fixtures/source-maps/nested/once.css);'), -- 2.34.1