diff --git a/src/api/manipulation.spec.ts b/src/api/manipulation.spec.ts index c3134222fe..d11d8d981a 100644 --- a/src/api/manipulation.spec.ts +++ b/src/api/manipulation.spec.ts @@ -1901,6 +1901,11 @@ describe('$(...)', () => { expect(text).toBe('M&M'); }); + it('should turn passed values to strings', () => { + $('.apple').text(1 as any); + expect($('.apple')[0].childNodes[0]).toHaveProperty('data', '1'); + }); + it('( undefined ) : should act as an accessor', () => { const $div = $('