@@ -4,6 +4,7 @@ import '../helpers/setup';
44// tslint:disable:ordered-imports
55import { DataService } from '../../src/core/data.service' ;
66// tslint:enable:ordered-imports
7+ import { JsonForms } from '../../src/core' ;
78import { JsonSchema } from '../../src/models/jsonSchema' ;
89import { ControlElement } from '../../src/models/uischema' ;
910import { NumberControl , numberControlTester } from '../../src/renderers/controls/number.control' ;
@@ -20,7 +21,18 @@ import {
2021 testShow ,
2122 testUndefinedErrors
2223} from './base.control.tests' ;
23-
24+ test . before ( t => {
25+ JsonForms . stylingRegistry . registerMany ( [
26+ {
27+ name : 'control' ,
28+ classNames : [ 'control' ]
29+ } ,
30+ {
31+ name : 'control.validation' ,
32+ classNames : [ 'validation' ]
33+ }
34+ ] ) ;
35+ } ) ;
2436test . beforeEach ( t => {
2537 t . context . data = { 'foo' : 3.14 } ;
2638 t . context . schema = {
@@ -46,7 +58,7 @@ test('NumberControlTester', t => {
4658 t . is ( numberControlTester ( { type : 'Control' } , undefined ) , - 1 ) ;
4759} ) ;
4860
49- test ( 'NumberControl tester with wrong schema type' , t => {
61+ test ( 'NumberCostyleNamentrol tester with wrong schema type' , t => {
5062 const control : ControlElement = {
5163 type : 'Control' ,
5264 scope : {
0 commit comments