testfields.v3.ts 346 B

12345678910111213141516171819202122232425
  1. // TESTS: Generation of Automatic MetaData from model using autoMeta library function
  2. // All fields will default to type 'text'
  3. const model1 = {
  4. a: 'Value 1',
  5. b: 'Value 2',
  6. c: 'Value 3',
  7. d: ''
  8. };
  9. const model2 = {
  10. a: 'Value 1',
  11. b: 'Value 2',
  12. c: 'Value 3',
  13. d: {
  14. e: 444,
  15. f: 555,
  16. g: {
  17. h: true,
  18. i: false
  19. }
  20. },
  21. z: 'THE END'
  22. };