import assert from 'power-assert';
import test from '../../helper/test';
import fontSize, {PX, PT} from '../../../lib/utility/css/font-size';

describe('fontSize', () => {
  it('returns the font size of an element in pixels', async () => {
    await test(
      `
      <p style="font-size: 12px">Lorem ipsum</p>
      `,
      p => assert(fontSize(p, PX) === 12)
    );
  });

  it('returns the font size of an element in points', async () => {
    await test(
      `
      <p style="font-size: 12px">Lorem ipsum</p>
      `,
      p => assert(fontSize(p, PT) === 9)
    );

    await test(
      `
      <p style="font-size: 11pt">Lorem ipsum</p>
      `,
      p => assert(fontSize(p, PT) === 11)
    );
  });

  it('returns the font size of an element in points by default', async () => {
    await test(
      `
      <p style="font-size: 12px">Lorem ipsum</p>
      `,
      p => assert(fontSize(p) === 9)
    );
  });
});

@@ -355,32 +355,165 @@
 ) === 12)%0A    );
+%0A%0A    await test(%0A      %60%0A      %3Cp style=%22font-size: 1.5em%22%3ELorem ipsum%3C/p%3E%0A      %60,%0A      p =%3E assert(fontSize(p, PX) === 24)%0A    );
 %0A  %7D);%0A%0A  it('re

Add additional font size test