Skip to content

Latest commit

 

History

History
46 lines (38 loc) · 759 Bytes

README.md

File metadata and controls

46 lines (38 loc) · 759 Bytes

spockts

TypeScript transformer inspired in the Spock framework. This project is still Work In Progress, but should be soon available in npmjs.

Example

describe('where', () => {
  describe('$A + $B when using a single table', () => {
    expect: "A + B equals C"
    A + B === C

    where:
    A | B || C
    1 | 2 || 3
    4 | 5 || 9
  });

  describe('$A + $B when appending rows', () => {
    expect: "A + B equals C"
    A + B === C

    where:
    A | B || C
    1 | 2 || 3

    and:
    A | B || C
    4 | 5 || 9
  });

  describe('$A + $B when appending columns', () => {
    expect: "A + B equals C"
    A + B === C

    where:
    A | B
    1 | 2
    4 | 5

    and:
    C
    3
    9
  });
});