This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"scripts": { | |
"test": "mocha" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npx: installed 24 in 6.203s | |
Warning: Could not find any test files matching pattern: test | |
No test files found |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npx create-react-app my-app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity 0.5.2; | |
contract owned { | |
address public owner; | |
constructor() public { | |
owner = msg.sender; | |
} | |
modifier onlyOwner { |