Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@stylable/core-test-kit

Package Overview
Dependencies
Maintainers
6
Versions
188
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stylable/core-test-kit - npm Package Compare versions

Comparing version 3.5.0 to 3.5.2

2

cjs/index.js

@@ -11,3 +11,3 @@ "use strict";

for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
}
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -14,0 +14,0 @@ __exportStar(require("./diagnostics"), exports);

{
"name": "@stylable/core-test-kit",
"version": "3.5.0",
"version": "3.5.2",
"description": "Stylable core test-kit",

@@ -14,3 +14,3 @@ "main": "./cjs/index.js",

"dependencies": {
"@stylable/core": "^3.5.0",
"@stylable/core": "^3.5.2",
"chai": "^4.2.0",

@@ -17,0 +17,0 @@ "flat": "^5.0.0",

@@ -10,3 +10,5 @@ # @stylable/core-test-kit

#### Matchers
An assortment of `Chai` matchers used by Stylable.
- `flat-match` - flattens and matches passed arguments

@@ -24,5 +26,7 @@ - `results` - test Stylable transpiled style rules output

#### Match rules
Exposes two utility functions (`matchRuleAndDeclaration` and `matchAllRulesAndDeclarations`) used for testing Stylable generated AST representing CSS rules and declarations.
## License
Copyright (c) 2019 Wix.com Ltd. All Rights Reserved. Use of this source code is governed by a [BSD license](./LICENSE).
Copyright (c) 2019 Wix.com Ltd. All Rights Reserved. Use of this source code is governed by a [BSD license](./LICENSE).

@@ -6,5 +6,5 @@ import { expect } from 'chai';

const { flag } = util;
chai.Assertion.addMethod('flatMatch', function (obj: {}, maxDepth = 5) {
chai.Assertion.addMethod('flatMatch', function (obj: Record<string, unknown>, maxDepth = 5) {
expect(flatten(flag(this, 'object'), { maxDepth })).to.contain(flatten(obj));
});
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc