DEV: fix warnings 'Hbs template must be compiled and not a string' in tests (#13116)

DEV: fix warnings ‘Hbs template must be compiled and not a string’ in tests (#13116)

These warnings appeared only when running tests using Ember CLI.

diff --git a/app/assets/javascripts/discourse/tests/integration/components/slow-mode-info-test.js b/app/assets/javascripts/discourse/tests/integration/components/slow-mode-info-test.js
index 632d2d6..25f302b 100644
--- a/app/assets/javascripts/discourse/tests/integration/components/slow-mode-info-test.js
+++ b/app/assets/javascripts/discourse/tests/integration/components/slow-mode-info-test.js
@@ -6,6 +6,7 @@ import {
   exists,
   queryAll,
 } from "discourse/tests/helpers/qunit-helpers";
+import hbs from "htmlbars-inline-precompile";
 
 discourseModule("Integration | Component | slow-mode-info", function (hooks) {
   setupRenderingTest(hooks);
@@ -23,7 +24,7 @@ discourseModule("Integration | Component | slow-mode-info", function (hooks) {
   });
 
   componentTest("doesn't render if the slow mode is disabled", {
-    template: "{{slow-mode-info topic=topic}}",
+    template: hbs`{{slow-mode-info topic=topic}}`,
 
     beforeEach() {
       this.set("topic", { slow_mode_seconds: 0, closed: false });
@@ -35,7 +36,7 @@ discourseModule("Integration | Component | slow-mode-info", function (hooks) {
   });
 
   componentTest("renders if slow mode is enabled", {
-    template: "{{slow-mode-info topic=topic}}",
+    template: hbs`{{slow-mode-info topic=topic}}`,
 
     beforeEach() {
       this.set("topic", { slow_mode_seconds: 3600, closed: false });
@@ -47,7 +48,7 @@ discourseModule("Integration | Component | slow-mode-info", function (hooks) {
   });
 
   componentTest("staff and TL4 users can disable slow mode", {
-    template: "{{slow-mode-info topic=topic user=user}}",
+    template: hbs`{{slow-mode-info topic=topic user=user}}`,
 
     beforeEach() {
       this.setProperties({
@@ -62,7 +63,7 @@ discourseModule("Integration | Component | slow-mode-info", function (hooks) {
   });
 
   componentTest("regular users can't disable slow mode", {
-    template: "{{slow-mode-info topic=topic user=user}}",
+    template: hbs`{{slow-mode-info topic=topic user=user}}`,
 
     beforeEach() {
       this.setProperties({

GitHub sha: a5dd24c4

This commit appears in #13116 which was approved by CvX. It was merged by AndrewPrigorshnev.