UNPKG

react-room-occupancy-input

Version:

React.js component for specifying a hotel room occupancy: how many adults, how many kids, how old kids are

29 lines (25 loc) 904 B
describe('intlMessages', function () { 'use strict'; var assert = require('assert'), intlMessages = require('../src/intlMessages'); it('is a function', function () { assert.strictEqual(typeof intlMessages, 'function'); }); describe('react-room-occupancy-input namespace', function () { ['en', 'de', 'zh'].forEach(function (locale) { [ 'adults', 'children', 'childrenAge', 'childAgeWarning' ].forEach(function (messageName) { it('defines ' + messageName + ' for ' + locale + ' locale', function () { assert.strictEqual( typeof intlMessages()[locale]['react-room-occupancy-input'][messageName], 'string' ); }); }); }); }); });