File size: 472 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/**
 * @jest-environment jsdom
 */

import decodeEntities from '../browser';

describe( 'decodeEntities', () => {
	test( 'should decode entities', () => {
		const decoded = decodeEntities( 'Ribs > Chicken' );
		expect( decoded ).toBe( 'Ribs > Chicken' );
	} );

	test( 'should not alter already-decoded entities', () => {
		const decoded = decodeEntities( 'Ribs > Chicken. Truth & Liars.' );
		expect( decoded ).toBe( 'Ribs > Chicken. Truth & Liars.' );
	} );
} );