1.0.1 • Published 6 years ago

@negative0/jasmine-dataprovider v1.0.1

Weekly downloads
2
License
-
Repository
-
Last release
6 years ago

Jasmine DataProvider ES6

It's a iteration like data providers in PHPUnit

describe('and when total method called', () => {
    const objectDataProvider = {
        'should do...': {actual: 10, expected: 9},
        'should do sth else...': {actual: 10, expected: 10},
    };

    using(objectDataProvider, (data, description) => {
        it(description, () => {
            console.log(data);
        });
    });
});