JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" href="http://code.jquery.com/qunit/git/qunit.css">
<script src="http://code.jquery.com/qunit/git/qunit.js"></script>
<h1 id="qunit-header">Unit Tests</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<ol id="qunit-tests"></ol>
<div id="qunit-fixture"></div>

JavaScript

function parseSentenceForNumber(sentence){
    
    return number; //The number from the string
}

test("Test parseSentenceForNumber('I have 1 pound')", function() {
  equal( parseSentenceForNumber('I have 1 pound'), 1);
});

test("Test parseSentenceForNumber('I have £3.50 to spend')", function() {
  equal( parseSentenceForNumber('I have £3.50 to spend'), 3.50);
});

test("Test parseSentenceForNumber('I have 23.00 pounds')", function() {
  equal( parseSentenceForNumber('I have 23.00 pounds'), 23);
});

test("Test parseSentenceForNumber('£27.33')", function() {
  equal( parseSentenceForNumber('£27.33'), 27.33);
});

test("Test parseSentenceForNumber('$4345.85')", function() {
  equal( parseSentenceForNumber('$4345.85'), 4345.85);
});

test("Test parseSentenceForNumber('3.00')", function() {
  equal( parseSentenceForNumber('3.00'), 3);
});

test("Test parseSentenceForNumber('7.0')", function() {
  equal( parseSentenceForNumber('7.0'), 7);
});

test("Test parseSentenceForNumber('Should have 2.0.')", function() {
  equal( parseSentenceForNumber('Should have 2.0.'), 2);
});

test("Test parseSentenceForNumber('Should have 15.20.')", function() {
  equal( parseSentenceForNumber('Should have 15.20.'), 15.20);
});

test("Test parseSentenceForNumber('3.15')", function() {
  equal( parseSentenceForNumber('3.15'), 3.15);
});

test("Test parseSentenceForNumber('I only have 5, not great.')", function() {
  equal( parseSentenceForNumber('I only have 5, not great.'), 5);
});

test("Test parseSentenceForNumber('&nbsp;34.23')", function() {
  equal( parseSentenceForNumber('&nbsp;34.23'), 34.23);
});

test("Test parseSentenceForNumber('sdfg545.14sdfg')", function() {
  equal( parseSentenceForNumber('sdfg545.14sdfg'), 545.14);
});

test("Test parseSentenceForNumber('Yesterday I spent £235468.13. Today I want to spend less.')", function() {
  equal( parseSentenceForNumber('Yesterday I spent £235468.13. Today I want to spend less.'), 235468.13);
});

test("Test...