@sutton-signwriting/core
Version:
a javascript package for node and browsers that supports general processing of the Sutton SignWriting script
22 lines (18 loc) • 440 B
JavaScript
import { merge } from './style-merge';
it('should merge style object', () => {
expect(merge({'colorize': true},{zoom:2})).toEqual({
'colorize': true,
'zoom': 2
});
})
it('should merge without breaking on bad data', () => {
expect(merge()).toEqual({
'zoom': 1
});
expect(merge(undefined)).toEqual({
'zoom': 1
});
expect(merge("S10000500x500-CZ5")).toEqual({
'zoom': 1
});
})