spe

speclight

speclight is a simple JavaScript BDD framework for Jasmine

Showing:

Popularity

Downloads/wk

114

GitHub Stars

4

Maintenance

Last Commit

4yrs ago

Contributors

3

Package

Dependencies

0

Size (min+gzip)

0.5KB

License

MIT

Type Definitions

Built-In

Tree-Shakeable

No?

Categories

Readme

speclight is a simple JavaScript BDD framework for Jasmine

Look at the Tests project for examples:

    describe(
    `In order to know how much money I can save
    As a Math Idiot
    I want to add two numbers`,
    () => {
        let a: number;
        let b: number;
        let actual: number;

        given`I enter ${5}`(input => a = input);
        and`I enter ${6}`(input => b = input);
        when`I press add`(() => actual = add(a, b));
        then`The result should be ${11}`(expected => expect(expected).toBe(actual));
    });

/* Output with jasmine-spec-reporter:
  In order to know how much money I can save
        As a Math Idiot
        I want to add two numbers
    √ Given I enter 5
    √  And I enter 6
    √ When I press add
    √ Then The result should be 11
*/

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100