UNPKG

precis-js

Version:

A JavaScript implementation of RFC 7564 (The PRECIS Framework).

10 lines (6 loc) 275 B
EmptyStringError = require '../../../src/error/EmptyStringError' describe 'EmptyStringError', -> beforeEach -> @subject = new EmptyStringError() it 'generates a meaningful message', -> assert.strictEqual @subject.message, 'String cannot be empty.'