freeCodeCamp/unpacked.js
Alex Chaffee 590f646263 feat(seed): "unpack" and "repack" scripts
add "npm run seed" as alias to "node seed"

unpack tests and solution into HTML file; add titles and help text; style unpacked file

enable running unpacked assert tests in browser

Using browserify, compile "tape", "lodash", jQuery into "unpacked-bundle.js" for use during in-browser unpacked tests

feat(seed): diff after repacking

feat(seed): unpacked tests use Browser TAP chrome dev tool if available
2018-04-03 19:52:56 +05:30

19 lines
525 B
JavaScript

/* eslint-disable no-unused-vars,max-len */
window._ = require('lodash');
window.test = require('tape').test;
// check for Browser TAP chrome extension, available here:
// https://chrome.google.com/webstore/detail/browser-tap/ncfblaiipckncgeipgmpdioedcdmofei?hl=en
if (window.tapExtension) {
window.test = window.tapExtension(window.test);
}
window.addAssertsToTapTest = require('./addAssertsToTapTest');
window.$ = require('jquery');
test('framework', function(t) {
t.plan(1);
t.equal(1, 1, 'one equals one');
});