Пример #1
0
 var preparedMethods = Object.keys(methods).reduce(function (result, methodName) {
     var method = methods[methodName];
     if (method.getOption('showOnDocPage') !== false) {
         result[methodName] = method;
     }
     return result;
 }, {});
 it('should be undefined when getOption()', function () {
   var someField = new GenericField();
   expect(someField.getOption('serializedType')).to.be.an('undefined');
 });
 it('should be false when getOption()', function () {
   var someField = new GenericField();
   someField.getOption('requireSerializing').should.equal(false);
 });