Skip to content

Commit

Permalink
test: use stringEqual over assert.equal
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Aug 10, 2023
1 parent 8cca7d7 commit 5142648
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/globals/attrs.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ test.group('Template | toAttributes', () => {
}
)

assert.equal(
assert.stringEqual(
html,
dedent`
<button type="text" aria-label="Buy products">
Expand Down Expand Up @@ -82,7 +82,7 @@ test.group('Template | toAttributes', () => {
{}
)

assert.equal(
assert.stringEqual(
html,
dedent`
<button disabled type="text" aria-label="Buy products">
Expand Down Expand Up @@ -112,7 +112,7 @@ test.group('Template | toAttributes', () => {
}
)

assert.equal(
assert.stringEqual(
html,
dedent`
<button foo="bar">
Expand All @@ -138,7 +138,7 @@ test.group('Template | toAttributes', () => {
{}
)

assert.equal(
assert.stringEqual(
html,
dedent`
<input accept="audio/*,video/*,image/*" />
Expand Down Expand Up @@ -167,7 +167,7 @@ test.group('Template | toAttributes', () => {
{}
)

assert.equal(
assert.stringEqual(
html,
dedent`
<div x-data="{ open: false }" x-init="console.log('Here I am')" x-show="open">
Expand Down Expand Up @@ -196,7 +196,7 @@ test.group('Template | toAttributes', () => {
{}
)

assert.equal(
assert.stringEqual(
html,
dedent`
<div x-cloak>
Expand Down Expand Up @@ -226,7 +226,7 @@ test.group('Template | toAttributes', () => {
{}
)

assert.equal(
assert.stringEqual(
html,
dedent`
<div x-on:click="alert($event.target.getAttribute('message'))" x-on:keyup.enter="alert('Submitted!')" x-on:keyup.page-down="alert('Submitted!')">
Expand Down Expand Up @@ -255,7 +255,7 @@ test.group('Template | toAttributes', () => {
{}
)

assert.equal(
assert.stringEqual(
html,
dedent`
<div x-bind:class="{ 'hidden': !show }" x-bind:style="{ color: 'red', display: 'flex' }">
Expand Down Expand Up @@ -288,7 +288,7 @@ test.group('Template | toAttributes', () => {
{}
)

assert.equal(
assert.stringEqual(
html,
dedent`
<div x-transition:enter="transition ease-out duration-300" x-transition:enter-start="opacity-0 scale-90" x-transition:enter-end="opacity-100 scale-100" x-transition:leave="transition ease-in duration-300" x-transition:leave-start="opacity-100 scale-100" x-transition:leave-end="opacity-0 scale-90">
Expand Down

0 comments on commit 5142648

Please sign in to comment.