6de2455917
- Added GLOBAL_MARKETS_TITLE to all translation files - Updated footer with 12 markets (4 active + 8 upcoming) - Translated market section to: zh-cn, zh-tw, ja, ko, th, vi, id, ms, hi - Built and deployed to production - CloudFront invalidation: I3RTMXVFDJXWLG3SYX208OP1CC
20 lines
450 B
JavaScript
20 lines
450 B
JavaScript
/* eslint-env mocha */
|
|
|
|
var assert = require('assert')
|
|
var appendField = require('../')
|
|
var testData = require('testdata-w3c-json-form')
|
|
|
|
describe('Append Field', function () {
|
|
for (var test of testData) {
|
|
it('handles ' + test.name, function () {
|
|
var store = Object.create(null)
|
|
|
|
for (var field of test.fields) {
|
|
appendField(store, field.key, field.value)
|
|
}
|
|
|
|
assert.deepEqual(store, test.expected)
|
|
})
|
|
}
|
|
})
|