Sha256: 0c062b4560cfba06ad9310f669fc95ab3cf56bb49f1cd142ed887870e2cc4c80

Contents?: true

Size: 787 Bytes

Versions: 88

Compression:

Stored size: 787 Bytes

Contents

"use strict";

var _ava = _interopRequireDefault(require("ava"));

var _stripComments = _interopRequireDefault(require("../../src/util/stripComments"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

(0, _ava.default)("stripComments()", function (t) {
  t.deepEqual((0, _stripComments.default)("aaa/**/bbb"), "aaabbb");
  t.deepEqual((0, _stripComments.default)("aaa/*bbb"), "aaa");
  t.deepEqual((0, _stripComments.default)("aaa/*xxx*/bbb"), "aaabbb");
  t.deepEqual((0, _stripComments.default)("aaa/*/xxx/*/bbb"), "aaabbb");
  t.deepEqual((0, _stripComments.default)("aaa/*x*/bbb/**/"), "aaabbb");
  t.deepEqual((0, _stripComments.default)("/**/aaa/*x*/bbb/**/"), "aaabbb");
  t.deepEqual((0, _stripComments.default)("/**/"), "");
});

Version data entries

88 entries across 50 versions & 10 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/postcss-modules-scope/node_modules/postcss-selector-parser/dist/__tests__/stripComments.js
optimacms-0.1.61 spec/dummy/node_modules/postcss-modules-local-by-default/node_modules/postcss-selector-parser/dist/__tests__/stripComments.js
optimacms-0.1.61 spec/dummy/node_modules/cssnano-preset-default/node_modules/postcss-selector-parser/dist/__tests__/stripComments.js
optimacms-0.1.61 spec/dummy/node_modules/postcss-preset-env/node_modules/postcss-attribute-case-insensitive/node_modules/postcss-selector-parser/dist/__tests__/stripComments.js
disco_app-0.18.0 test/dummy/node_modules/postcss-modules-scope/node_modules/postcss-selector-parser/dist/__tests__/stripComments.js
disco_app-0.18.0 test/dummy/node_modules/postcss-modules-local-by-default/node_modules/postcss-selector-parser/dist/__tests__/stripComments.js
disco_app-0.18.2 test/dummy/node_modules/postcss-modules-local-by-default/node_modules/postcss-selector-parser/dist/__tests__/stripComments.js
disco_app-0.18.2 test/dummy/node_modules/postcss-modules-scope/node_modules/postcss-selector-parser/dist/__tests__/stripComments.js
trusty-cms-5.0.7 node_modules/postcss-selector-parser/dist/__tests__/stripComments.js
trusty-cms-5.0.6 node_modules/postcss-selector-parser/dist/__tests__/stripComments.js
trusty-cms-5.0.5 node_modules/postcss-selector-parser/dist/__tests__/stripComments.js
trusty-cms-5.0.4 node_modules/postcss-selector-parser/dist/__tests__/stripComments.js
disco_app-0.16.1 test/dummy/node_modules/postcss-modules-scope/node_modules/postcss-selector-parser/dist/__tests__/stripComments.js
disco_app-0.15.2 test/dummy/node_modules/postcss-modules-scope/node_modules/postcss-selector-parser/dist/__tests__/stripComments.js
trusty-cms-5.0.3 node_modules/postcss-selector-parser/dist/__tests__/stripComments.js
trusty-cms-5.0.2 node_modules/postcss-selector-parser/dist/__tests__/stripComments.js
disco_app-0.18.4 test/dummy/node_modules/postcss-modules-scope/node_modules/postcss-selector-parser/dist/__tests__/stripComments.js
disco_app-0.18.1 test/dummy/node_modules/postcss-modules-scope/node_modules/postcss-selector-parser/dist/__tests__/stripComments.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/postcss-modules-scope/node_modules/postcss-selector-parser/dist/__tests__/stripComments.js
disco_app-0.14.0 test/dummy/node_modules/postcss-modules-scope/node_modules/postcss-selector-parser/dist/__tests__/stripComments.js