Sha256: be3de48d8acbec1aad5b65f3dd3c6b3bd44b7e63cae5d82ec01224acc6456f3e

Contents?: true

Size: 203 Bytes

Versions: 87

Compression:

Stored size: 203 Bytes

Contents

var tape = require('tape')
var gen = require('./')

tape('valid', function(t) {
  t.same(gen('a', 'b'), 'a.b')
  t.end()
})

tape('invalid', function(t) {
  t.same(gen('a', '-b'), 'a["-b"]')
  t.end()
})

Version data entries

87 entries across 82 versions & 13 rubygems

Version Path
govuk_publishing_components-18.0.0 node_modules/generate-object-property/test.js
govuk_publishing_components-17.21.0 node_modules/generate-object-property/test.js
govuk_publishing_components-17.20.0 node_modules/generate-object-property/test.js
govuk_publishing_components-17.19.1 node_modules/generate-object-property/test.js
govuk_publishing_components-17.19.0 node_modules/generate-object-property/test.js
govuk_publishing_components-17.18.0 node_modules/generate-object-property/test.js
govuk_publishing_components-17.17.0 node_modules/generate-object-property/test.js
govuk_publishing_components-17.16.0 node_modules/generate-object-property/test.js
govuk_publishing_components-17.15.0 node_modules/generate-object-property/test.js
govuk_publishing_components-17.14.0 node_modules/generate-object-property/test.js
govuk_publishing_components-17.13.0 node_modules/generate-object-property/test.js
govuk_publishing_components-17.12.2 node_modules/generate-object-property/test.js
govuk_publishing_components-17.12.1 node_modules/generate-object-property/test.js
govuk_publishing_components-17.12.0 node_modules/generate-object-property/test.js
govuk_publishing_components-17.11.0 node_modules/generate-object-property/test.js
govuk_publishing_components-17.10.0 node_modules/generate-object-property/test.js
govuk_publishing_components-17.9.0 node_modules/generate-object-property/test.js
govuk_publishing_components-17.8.0 node_modules/generate-object-property/test.js
govuk_publishing_components-17.7.0 node_modules/generate-object-property/test.js
govuk_publishing_components-17.6.1 node_modules/generate-object-property/test.js