Skip to content

Commit

Permalink
WIP. check test
Browse files Browse the repository at this point in the history
  • Loading branch information
GoodDayForSurf committed Dec 23, 2024
1 parent bbdbaf9 commit 0395049
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,11 @@ export default class BootstrapExtractor {
async sassProcessor(): Promise<string> {
const functions = await this.readSassFile('_functions.scss');
const variables = await this.readSassFile('_variables.scss');

const variablesDarkFile = '_variables-dark.scss';
const variablesDark = this.version === 5 && existsSync(this.getFilePath(variablesDarkFile)) ? await this.readSassFile(variablesDarkFile) : ''; // TODO: can be removed safely in bootstrap@6

console.log('------readSassFile---->');
const result = `${functions}
${variables}
${variablesDark}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ describe('Builder integration tests', () => {
const themeBuilderCss = normalizeCss(result.css);
const cssPath = path.resolve(__dirname, '../../../devextreme/artifacts/css/dx.light.css');
const distributionCss = normalizeCss(readFileSync(cssPath, 'utf8'));
expect(themeBuilderCss.substring(0,1000)).toBe(distributionCss.substring(0,1000));
expect(themeBuilderCss).toBe(distributionCss);
});
}, buildTimeout);

Expand Down

0 comments on commit 0395049

Please sign in to comment.