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

eyeglass-dev-testutils

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eyeglass-dev-testutils - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

24

lib/testutils.js

@@ -15,2 +15,12 @@ "use strict";

function readFile(path, encoding) {
try {
fs.statSync(path);
return fs.readFileSync(path, encoding);
}
catch (e) {
return "";
}
}
module.exports = {

@@ -29,4 +39,4 @@ getSassFixtures: function(fixtureDir) {

obj[name] = {
source: fs.readFileSync(sourceFile, encoding),
expected: fs.readFileSync(expectedFile, encoding)
source: readFile(sourceFile, encoding),
expected: readFile(expectedFile, encoding)
};

@@ -57,3 +67,3 @@

assert(!result);
this.assertMultilineEqual(err.message, expectedError);
this.assertErrorMessage(err.message, expectedError);
done();

@@ -115,3 +125,11 @@ }.bind(this));

});
},
assertErrorMessage: function(message, expected) {
if (expected instanceof RegExp) {
assert.ok(expected.test(message));
}
else {
this.assertMultilineEqual(message, expected);
}
}
};

2

package.json
{
"name": "eyeglass-dev-testutils",
"version": "0.0.3",
"version": "0.0.4",
"description": "Testing Utilities. For Eyeglass.",

@@ -5,0 +5,0 @@ "license": "Apache-2.0",

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