A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/coderaiser/speca below:

coderaiser/speca: ♨️ Speca writes tape tests for you.

♨️ Speca

Writes 📼Supertape tests for you using 🐊Putout. Here is how it looks like:

Made from prototype.

Install
npm i speca -g
Usage
speca sum.js
// creates a file: sum.spec.js

Input sum.js:

export const sum = (a, b) => a + b;

Output sum.spec.js:

import {test} from 'supertape';
import {sum} from './sum.js';

test('name: sum', (t) => {
    const result = sum('a', 'b');
    const expected = '';
    
    t.equal(result, expected);
    t.end();
});
License

MIT


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4