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

jssvg

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jssvg - npm Package Compare versions

Comparing version 0.0.1 to 1.0.0

6

package.json
{
"name": "jssvg",
"version": "0.0.1",
"version": "1.0.0",
"description": "composable svg tag functions",

@@ -37,4 +37,4 @@ "main": "index.js",

"svg-tags": "^1.0.0",
"xmltag": "0.0.2"
"xmltag": "^1.0.0"
}
}
}

@@ -1,12 +0,12 @@

const svgTags = require('svg-tags');
const jssvg = require('../index');
const svgTags = require('svg-tags')
const jssvg = require('../index')
describe('jssvg', () => {
it('has the tag functions', () => {
expect(jssvg.animate({foo: "bar"})).toEqual('<animate foo="bar"/>');
});
expect(jssvg.animate({ foo: 'bar' })).toEqual('<animate foo="bar" />')
})
it('has all the functions', () => {
expect(Object.keys(jssvg).length).toEqual(svgTags.length);
});
});
expect(Object.keys(jssvg).length).toEqual(svgTags.length)
})
})
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