What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-08-29 20:55:02
chai js
Chai is an assertion library with 3 different assert styles, namely "should", "expect" and "assert". foo.should.equal('bar'); // Should style expect(foo).to.equal('bar'); // Expect style assert.equal(foo, 'bar'); // Assert... Add solution -
Javascript 2021-08-29 19:29:01
nodejs mocha mock
const chai = require("chai"); const expect = chai.expect; const sinon = require("sinon"); const indexPage = require("../../controllers/app.controller.js"); describe("AppController", function() { describe("g... Add solution -
Javascript 2021-08-28 00:09:02
react proptypes
import PropTypes from 'prop-types'; MyComponent.propTypes = { // You can declare that a prop is a specific JS type. By default, these // are all optional. optionalArray: PropTypes.array, optionalBool: PropTypes.bool, optionalFunc: PropTypes.fun... Add solution -
Other 2021-08-27 19:31:02
game on lyrics
Sez On The Beat Boy Game on mera hatne na du main focus Woh alag sabse milta na kuch same hokar Sabse kehta main jo kar raha tu woh kar Mera aim on lock jab ho game on Game on mera hatne na du main focus Woh alag sabse milta na kuch same hokar Khudse keh... Add solution -
Shell/Bash 2021-08-27 19:00:01
clion WSL
MAKE SURE TO HAVE LATEST CLION BUILD Official Guide(non detailed):https://www.jetbrains.com/help/clion/how-to-use-wsl-development-environment-in-product.html#wsl-tooclhain 1) install wsl 1 or 2 on your windows machine 2) copy text from this script name i... Add solution