diff --git a/src/app/core/services/formatter.service.spec.ts b/src/app/core/services/formatter.service.spec.ts
index cc1f13e..de6db7e 100644
--- a/src/app/core/services/formatter.service.spec.ts
+++ b/src/app/core/services/formatter.service.spec.ts
@@ -249,6 +249,42 @@ describe('Service: Formatter', () => {
}
));
+ it('should add closing slash to col elements but not colgroup', inject(
+ [FormatterService],
+ (service: FormatterService) => {
+ const str = `
+
+
+
+
+
+
+
+
+
`;
+ const result = `
+
+
+
+
+
+
+
+
+
`;
+ expect(service.useReactSyntax(str)).toBe(result);
+ }
+ ));
+
+ it('should not add a closing slash to col elements if it already has one', inject(
+ [FormatterService],
+ (service: FormatterService) => {
+ const str = `