We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5603cbe commit 1860103Copy full SHA for 1860103
test/services/schema-form-test.js
@@ -257,6 +257,30 @@ describe('schemaForm', function() {
257
});
258
259
260
+ it.only('should handle x-schema-form defaults',function(){
261
+ inject(function(schemaForm){
262
+
263
+ var schema = {
264
+ "type": "object",
265
+ "properties": {
266
+ "name": {
267
+ "title": "Name",
268
+ "description": "Gimme yea name lad",
269
+ "type": "string",
270
+ "x-schema-form": {
271
+ "type": "textarea"
272
+ }
273
274
275
+ };
276
277
278
279
+ var f = schemaForm.defaults(schema,{});
280
+ f.form[0].type.should.be.eq('textarea');
281
+ });
282
283
284
it('should ignore parts of schema in ignore list',function(){
285
inject(function(schemaForm){
286
0 commit comments