Cytoscape.js mocha

@charset "utf-8"; body { margin:0; } #mocha { font: 20px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif; margin: 60px 50px; } #mocha ul, #mocha li { margin: 0; padding: 0; } #mocha ul { list-style: none; } #mocha h1, #mocha h2 { ma

Kefir.js with interval

const {value, error, end, Kefir, expect} = require("../test-helpers") describe("withInterval", () => { it("should return stream", () => { expect(Kefir.withInterval(100, () => {})).to.be.observable.stream() }) it("should work as expected", ()

solution webpack chunk won"t be cached

A common challenge with combining `[chunkhash]` and Code Splitting is that the entry chunk includes the webpack runtime and with it the chunkhash mappings. This means it"s always updated and the `[chunkhash]` is pretty useless because this chunk won"t be

carbon-now-cli process content

// Packagesimport test from "ava";// Sourceimport process from "../src/process-content";// Utilimport readFileAsync from "../src/util/readfile-async";test("Correctly processes full length of files", async t => { const [js, rust, html] = [ "./

Ramda _curry3

var eq = require("../shared/eq.js"); var _ = require("../../source/__.js"); var _curry3 = require("../../source/internal/_curry3.js"); describe("_curry3", function() { it("supports R.__ placeholder", function() { var f = function(a, b, c) { retur
  • Views: 7
  • Keywords: Ramda,

superagent use

const assert = require("assert"); const getSetup = require("./support/setup"); const request = require("./support/client"); describe("request", function () { let setup; let uri; before(async function () { setup = await getSetup(); uri =

webpack examples

"use strict"; const fs = require("fs"); const path = require("path"); function findInFolder(folder, depth) { if(fs.existsSync(path.join(folder, "template.md"))) { return [folder]; } else if(depth > 0) { const files = fs.readdirSync(folder); con

lodash pick

import assert from "assert"; import lodashStable from "lodash"; import { args, toArgs } from "./utils.js"; import pick from "../pick.js"; describe("pick", function() { var args = toArgs(["a", "c"]), object = { "a": 1, "b": 2, "c": 3, "d": 4 },

BitcoinJS bufferutils.spec

import * as assert from "assert"; import { describe, it } from "mocha"; import * as bufferutils from "../src/bufferutils"; import { BufferReader, BufferWriter } from "../src/bufferutils"; import * as fixtures from "./fixtures/bufferutils.json"; const va

xlsx xlsxspread

/*! xlsxspread.js (C) SheetJS LLC -- https://sheetjs.com/ */ /* eslint-env browser */ /*global XLSX */ /*exported stox, xtos */ console.log("The latest version of the xlsxspread.js script is at https://cdn.sheetjs.com/xspreadsheet/xlsxspread.js !") /**
  • Views: 3
  • Keywords: xlsx,