import { When , Then } from '@cucumber/fake-cucumber' ; import DataTable from '@cucumber/fake-cucumber/dist/src/DataTable' ; When ( 'the following table is transposed:' , function ( table ) { this . transposed = table . transpose ( ) ; } ) ; Then ( 'it should be:' , function ( expected ) { this . transposed . diff ( expected ) ; } ) ;