should-format
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -107,3 +107,3 @@ var getType = require('should-type'); | ||
function addSpaces(v) { | ||
return ' ' + v; | ||
return v.split('\n').map(function(vv) { return ' ' + vv; }).join('\n'); | ||
} | ||
@@ -110,0 +110,0 @@ |
{ | ||
"name": "should-format", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "Formatting of objects for should.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -162,1 +162,5 @@ var format = require('../'); | ||
}); | ||
it('should correctly indent', function() { | ||
assert.equal(format({ a: { b: 'abc' }, d: 'abc'}, { maxLineLength: 0 }), '{\n a: {\n b: \'abc\'\n },\n d: \'abc\'\n}') | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
227579
8029