Skip to content

Commit

Permalink
rename and fix test (T1265287)
Browse files Browse the repository at this point in the history
  • Loading branch information
GoodDayForSurf committed Dec 11, 2024
1 parent 49e21ea commit 5610109
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ ${this.input}
${this.getSetterServiceCode('!default')}
${this.getCollectorServiceCode()}`;

return this.clearFromImports(result);
return this.removeImports(result);
}

clearFromImports(content: string): string {
removeImports(content: string): string {
return content.replace(/^@import "variables-dark";.*$/gm, '');
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,14 @@ describe('BootstrapExtractor', () => {

expect(result.includes('@import "variables-dark";')).toBeFalsy();

expect(result).toBe(`${functions.toString()}
const expectedResult = `${functions.toString()}
${variables.toString()}
${variablesDark.toString()}
${testSassString}
${setterServiceCode}
${collectorServiceCode}`);
${collectorServiceCode}`;

expect(result).toBe(extractor.removeImports(expectedResult));
});

test('getSetterServiceCode', () => {
Expand Down

0 comments on commit 5610109

Please sign in to comment.