diff --git a/test/HelmetDeclarativeTest.js b/test/HelmetDeclarativeTest.js index d9d3f28d..331c704e 100644 --- a/test/HelmetDeclarativeTest.js +++ b/test/HelmetDeclarativeTest.js @@ -46,6 +46,23 @@ describe("Helmet - Declarative API", () => { }); }); + it("updates page title and allows children containing expressions", (done) => { + const someValue = "Some Great Title"; + + ReactDOM.render( + + Title: {someValue} + , + container + ); + + requestIdleCallback(() => { + expect(document.title).to.equal("Title: Some Great Title"); + + done(); + }); + }); + it("updates page title with multiple children", (done) => { ReactDOM.render(