Built with from Grav and Hugo
synchronous :
expect(() => list.clickButton()).toThrow('incorrect param "action"');
asynchronous :
expect(list.clickButton()).rejects.toEqual(new Error('incorrect param "action"'));