feat: Added getFontSize method test

This commit is contained in:
Giacomo Ferlaino 2020-03-13 21:26:11 +01:00
parent e54f881e55
commit b3aab20ac2

View file

@ -87,4 +87,10 @@ describe('Class: Ng2FittextDirective', () => {
).toHaveBeenCalledWith('font-size', `${newFontSize}px`);
});
});
describe('Method: getFontSize', () => {
it('Should return the current font size', () => {
expect(ng2FittextDirective.getFontSize()).toEqual(1000);
});
});
});