0.0.5 • Published 4 years ago

tslint-newlines-between-tests v0.0.5

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago

tslint-newlines-between-tests

A tslint rule to ensure newlines between test members, for example, this

    describe('foo', () => {
        beforeAll(setup);
        afterAll(teardown);
        beforeEach(setup);
        afterEach(teardown);
        it('should foo', () => {});
        it('should not bar', () => {});
    });
    describe('bar', () => {
        beforeAll(setup);
        afterAll(teardown);
        beforeEach(setup);
        afterEach(teardown);
        it('should bar', () => {});
        it('should not foo', () => {});
    });

will become this:

    describe('foo', () => {
        beforeAll(setup);

        afterAll(teardown);

        beforeEach(setup);

        afterEach(teardown);

        it('should foo', () => {});

        it('should not bar', () => {});
    });

    describe('bar', () => {
        beforeAll(setup);

        afterAll(teardown);

        beforeEach(setup);

        afterEach(teardown);

        it('should bar', () => {});

        it('should not foo', () => {});
    });
0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago