mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-14 23:08:07 -04:00
Rename module
HighlightTags was bad because: - we haven’t called placeholders ‘tags’ for a long time - it also does resizing of the `<textarea>`, not just highlighting the placeholders
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
const helpers = require('./support/helpers.js');
|
||||
|
||||
beforeAll(() => {
|
||||
require('../../app/assets/javascripts/highlightTags.js');
|
||||
require('../../app/assets/javascripts/enhancedTextbox.js');
|
||||
});
|
||||
|
||||
afterAll(() => {
|
||||
require('./support/teardown.js');
|
||||
});
|
||||
|
||||
describe('Highlight tags', () => {
|
||||
describe('Enhanced textbox', () => {
|
||||
|
||||
let input;
|
||||
let textarea;
|
||||
@@ -38,11 +38,11 @@ describe('Highlight tags', () => {
|
||||
document.body.innerHTML = `
|
||||
<div class="form-group">
|
||||
<label for="subject">Subject</label>
|
||||
<input class="form-control textbox-highlight-textbox" data-module="highlight-tags" type="text" name="subject" id="subject" />
|
||||
<input class="form-control textbox-highlight-textbox" data-module="enhanced-textbox" type="text" name="subject" id="subject" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="template_content">Message</label>
|
||||
<textarea class="form-control form-control-1-1 textbox-highlight-textbox" data-module="highlight-tags" id="template_content" name="template_content" rows="8">
|
||||
<textarea class="form-control form-control-1-1 textbox-highlight-textbox" data-module="enhanced-textbox" id="template_content" name="template_content" rows="8">
|
||||
</textarea>
|
||||
</div>`;
|
||||
|
||||
Reference in New Issue
Block a user