Skip to content

Commit

Permalink
issue-#131 - npm audit --fix
Browse files Browse the repository at this point in the history
- Added additional test fixtures
  for 'insert' feature.
  • Loading branch information
elycruz committed Jun 30, 2024
1 parent 90f2afa commit 0e742e6
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 7 deletions.
4 changes: 2 additions & 2 deletions test/fixtures/insert/index2_sub-mod-1.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import '../../assets/actual_c.scss';
import '../../assets/actual_c.sass';

export const someOp = () => null;
export const someOp = () => console.log(`${someOp.name} called.`);
4 changes: 2 additions & 2 deletions test/fixtures/insert/index2_sub-mod-2.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '../../assets/actual_c.scss';
import '../../assets/actual_c.sass';
import '../../assets/actual_d.scss';

export const someOtherOp = () => null;
export const someOtherOp = () => console.log(`${someOtherOp.name} called.`);
6 changes: 3 additions & 3 deletions test/fixtures/insert/index3.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '../../assets/actual_a.scss';
import './index3.css';
import './nested-styles.scss';
import './index';

const yetAnotherOp = () => null;
const yetAnotherOp = () => console.log(`${yetAnotherOp.name} called.`);
3 changes: 3 additions & 0 deletions test/fixtures/insert/nested-style-1.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
body {
font-size: 1rem;
}
4 changes: 4 additions & 0 deletions test/fixtures/insert/nested-style-2.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
body {
margin: 0;
padding: 0;
}
6 changes: 6 additions & 0 deletions test/fixtures/insert/nested-styles.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@import "./nested-style-1";
@import "./nested-style-2";

body {
display: grid;
}

0 comments on commit 0e742e6

Please sign in to comment.