Socket
Socket
Sign inDemoInstall

chroma-sass

Package Overview
Dependencies
0
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.1 to 1.1.2

test/fixtures/functions/add-colors/prevent-local-chroma/input.scss

2

bower.json
{
"name": "chroma",
"version": "1.1.1",
"version": "1.1.2",
"homepage": "https://github.com/JohnAlbin/chroma",

@@ -5,0 +5,0 @@ "authors": [

@@ -9,3 +9,3 @@ # About Chroma

These docs are for Chroma 1.1.1.
These docs are for Chroma 1.1.2.

@@ -12,0 +12,0 @@ ## USAGE

{
"name": "chroma-sass",
"version": "1.1.1",
"version": "1.1.2",
"homepage": "https://github.com/JohnAlbin/chroma",

@@ -5,0 +5,0 @@ "author": "John Albin Wilkins <virtually.johnalbin@gmail.com> (http://john.albin.net/)",

@@ -145,2 +145,9 @@ 'use strict';

});
it('should prevent a user from creating a local $chroma variable', function(done) {
sassyTest.renderFixture('define-color-scheme/prevent-local-chroma', {}, function(error, result, expectedOutput) {
should.not.exist(error);
done();
});
});
});

@@ -162,2 +169,9 @@

});
it('should prevent a user from creating a local $chroma variable', function(done) {
sassyTest.renderFixture('define-default-color-scheme/prevent-local-chroma', {}, function(error, result, expectedOutput) {
should.not.exist(error);
done();
});
});
});

@@ -253,2 +267,9 @@

});
it('should prevent a user from creating a local $chroma variable', function(done) {
sassyTest.renderFixture('add-colors/prevent-local-chroma', {}, function(error, result, expectedOutput) {
should.not.exist(error);
done();
});
});
});

@@ -258,3 +279,3 @@

it('should add a skin to Chroma', function(done) {
sassyTest.renderFixture('define-skin', {}, function(error, result, expectedOutput) {
sassyTest.renderFixture('define-skin/skin', {}, function(error, result, expectedOutput) {
should.not.exist(error);

@@ -264,2 +285,10 @@ done();

});
it('should warn the user it is deprecated', function(done) {
sassyTest.renderFixture('define-skin/deprecated', {}, function(error, result, expectedOutput) {
should.not.exist(error);
result.warn[0].should.equal('The define-skin() function is deprecated. Use define-skins() instead.');
done();
});
});
});

@@ -269,3 +298,3 @@

it('should add a list of skins to Chroma', function(done) {
sassyTest.renderFixture('define-skins', {}, function(error, result, expectedOutput) {
sassyTest.renderFixture('define-skins/skin', {}, function(error, result, expectedOutput) {
should.not.exist(error);

@@ -275,3 +304,26 @@ done();

});
it('should error if the color scheme does not exist', function(done) {
sassyTest.renderFixture('define-skins/error-scheme', {}, function(error, result, expectedOutput) {
error.should.exist;
error.message.should.equal('The color scheme "not-existant" was not found.');
done();
});
});
it('should error if the selector is not a string', function(done) {
sassyTest.renderFixture('define-skins/error-selector', {}, function(error, result, expectedOutput) {
error.should.exist;
error.message.should.equal('The selector for the default skin was a map, but should be a string.');
done();
});
});
it('should prevent a user from creating a local $chroma variable', function(done) {
sassyTest.renderFixture('define-skins/prevent-local-chroma', {}, function(error, result, expectedOutput) {
should.not.exist(error);
done();
});
});
});
});

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc