This is the code that runs https://bandolier.learnjsthehardway.com/ for you to review. It uses the https://git.learnjsthehardway.com/learn-javascript-the-hard-way/bandolier-template to create the documentation for the project.
https://bandolier.learnjsthehardway.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
677 B
27 lines
677 B
import test from 'ava';
|
|
import {login, tid, expect, playstart, playstop } from '../../lib/testing.js';
|
|
import {knex} from '../../lib/ormish.js';
|
|
import { base_host } from "../../lib/config.js";
|
|
|
|
const fairpay = `${base_host}/client/#/bando/components/FairPay/`;
|
|
|
|
test.before(async t => {
|
|
// BUG: is t.context an ava thing or can I do this?
|
|
t.context = await playstart(`${base_host}/client/#/login/`);
|
|
});
|
|
|
|
test.after(async t => {
|
|
knex.destroy();
|
|
await playstop(t.context.browser, t.context.p);
|
|
});
|
|
|
|
test('test /FairPay works', async (t) => {
|
|
const {p} = t.context;
|
|
|
|
try {
|
|
t.pass();
|
|
} catch (error) {
|
|
console.log(error);
|
|
t.fail(error.message);
|
|
}
|
|
});
|
|
|