Skip to content

Instantly share code, notes, and snippets.

View SibeeshVenu's full-sized avatar
🙂
Learning and Sharing

Sibeesh Venu SibeeshVenu

🙂
Learning and Sharing
View GitHub Profile
"scripts": {
"test": "mocha"
}
npx: installed 24 in 6.203s
Warning: Could not find any test files matching pattern: test
No test files found
PS F:\SibeeshPassion\Articles\NPMvsNPX\npx\mocha-example-npx> mkdir test
Directory: F:\SibeeshPassion\Articles\NPMvsNPX\npx\mocha-example-npx
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 20-10-2018 06:26 PM test
PS F:\SibeeshPassion\Articles\NPMvsNPX\npx\mocha-example-npx> npx mocha
npx: installed 24 in 4.142s
Array
#indexOf()
√ should return -1 when the value is not present
1 passing (12ms)
npx create-react-app my-app
PS F:\SibeeshPassion\Articles\NPMvsNPX\npx\mocha-example-npx> npm list mocha
mocha-example-npx@1.0.0 F:\SibeeshPassion\Articles\NPMvsNPX\npx\mocha-example-npx
`-- (empty)
PS F:\SibeeshPassion\Articles\NPMvsNPX\npx\mocha-example-npx> npm list -g mocha
C:\Users\Sibeesh\AppData\Roaming\npm
`-- (empty)
PS F:\SibeeshPassion\Articles\NPMvsNPX\npx\mocha-example-npx>
PS F:\SibeeshPassion\Articles\NPMvsNPX\npx\mocha-example-npx> npm i mocha -g
C:\Users\Sibeesh\AppData\Roaming\npm\mocha -> C:\Users\Sibeesh\AppData\Roaming\npm\node_modules\mocha\bin\mocha
C:\Users\Sibeesh\AppData\Roaming\npm\_mocha -> C:\Users\Sibeesh\AppData\Roaming\npm\node_modules\mocha\bin\_mocha
+ mocha@5.2.0
added 24 packages from 436 contributors in 3.033s
PS F:\SibeeshPassion\Articles\NPMvsNPX\npx\mocha-example-npx> npx mocha
Array
#indexOf()
√ should return -1 when the value is not present
1 passing (12ms)
PS F:\SibeeshPassion\Articles\NPMvsNPX\npx\mocha-example-npx>
import * as React from "react";
import { IAddressListProps } from '../../detailPage/components/interfaces/IAddressListProps';
import { config } from "../../config";
export class PrintAddressList extends React.Component<IAddressListProps, {}>{
constructor(props: IAddressListProps) {
super(props);
}
private createAddressCard = () => {
let parent = [];
pragma solidity 0.5.2;
contract owned {
address public owner;
constructor() public {
owner = msg.sender;
}
modifier onlyOwner {