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

cheminfo-tools-test

Package Overview
Dependencies
Maintainers
11
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cheminfo-tools-test - npm Package Compare versions

Comparing version 6.1.2 to 7.0.0

.github/workflows/documentation.yml

32

package.json
{
"name": "cheminfo-tools-test",
"version": "6.1.2",
"version": "7.0.0",
"description": "Dummy project - used as a starting point for new libraries",

@@ -14,20 +14,32 @@ "keywords": [

},
"jest": {
"transform": {}
},
"homepage": "https://github.com/cheminfo-js/test",
"license": "MIT",
"main": "./src/index.js",
"directories": {
"lib": "src",
"test": "test"
"exports": {
"require": "./lib/index.js",
"default": "./src/index.js"
},
"type": "module",
"scripts": {
"test": "mocha --require should --reporter mocha-better-spec-reporter --recursive",
"build": "cheminfo build",
"deploy": "echo 1"
"test": "npm run test-only && npm run eslint",
"test-only": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js",
"test-coverage": "npm run test-only -- --coverage",
"build": "cheminfo-build",
"deploy": "echo 1",
"eslint": "echo 2"
},
"devDependencies": {
"cheminfo-build": "^1.1.6",
"mocha": "^8.1.3",
"mocha-better-spec-reporter": "^3.1.0",
"should": "^13.2.3"
"jest": "^26.5.2"
},
"prettier": {
"arrowParens": "always",
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all"
}
}
# dummy
[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![David deps][david-image]][david-url]
[![npm download][download-image]][download-url]
[![NPM version][npm-image]][npm-url]
[![npm download][download-image]][download-url]
Dummy project - used as a starting point for new libraries
THIS IS A TEST.
## Configuration
* Copy all files of this project
* Edit :
* package.json
* bower.json
* README.md
* Put code in `src`, export from `src/index.js`
* Put tests in `test`, use [mocha](http://mochajs.org/) and [should](http://shouldjs.github.io/)
* Publish to npm `npm publish` (must be done for each release)
* Publish to bower `bower publish` (only once)
* Activate the hook on [travis](https://travis-ci.org/profile) (first test suite will be executed on next commit)
## Development

@@ -34,3 +18,2 @@

### Build dist files

@@ -42,11 +25,7 @@

[MIT](./LICENSE)
[MIT](./LICENSE)
[npm-image]: https://img.shields.io/npm/v/cheminfo-dummy.svg?style=flat-square
[npm-url]: https://www.npmjs.com/package/cheminfo-dummy
[travis-image]: https://img.shields.io/travis/cheminfo-js/dummy/master.svg?style=flat-square
[travis-url]: https://travis-ci.org/cheminfo-js/dummy
[david-image]: https://img.shields.io/david/cheminfo-js/dummy.svg?style=flat-square
[david-url]: https://david-dm.org/cheminfo-js/dummy
[download-image]: https://img.shields.io/npm/dm/cheminfo-dummy.svg?style=flat-square
[download-url]: https://www.npmjs.com/package/cheminfo-dummy
[npm-image]: https://img.shields.io/npm/v/cheminfo-tools-test.svg?style=flat-square
[npm-url]: https://www.npmjs.com/package/cheminfo-tools-test
[download-image]: https://img.shields.io/npm/dm/cheminfo-tools-test.svg?style=flat-square
[download-url]: https://www.npmjs.com/package/cheminfo-tools-test

@@ -1,8 +0,20 @@

'use strict';
/**
* Returns a very important number
* @returns {number}
*/
export default function theDefaultExport() {
return 42;
}
module.exports = function () {
// returns true
// comment
// hello
return true;
};
/**
* Value that can be incremented
* @type {number}
*/
export let value = 0;
/**
* Increments the value by one.
*/
export function incrementValue() {
value++;
}

@@ -1,9 +0,15 @@

'use strict';
import test, { value, incrementValue } from 'cheminfo-tools-test';
var dummy = require('..');
describe('dummy test', function () {
it('should return true', function () {
dummy().should.be.true;
});
describe('testing the module', () => {
it('should return 42', () => {
expect(test()).toBe(42);
});
it('should increment', () => {
expect(value).toBe(0);
incrementValue();
expect(value).toBe(1);
incrementValue();
incrementValue();
expect(value).toBe(3);
});
});
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