Skip to content

Commit

Permalink
chore: format with Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
alecarn committed Aug 26, 2024
1 parent 0ada522 commit 0ac471e
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 25 deletions.
4 changes: 2 additions & 2 deletions e2e/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default defineConfig({
baseUrl: 'http://localhost:4201',
specPattern: 'e2e/src/*.spec.ts',
supportFile: 'e2e/support/e2e.ts',
videosFolder: "e2e/dist/videos",
screenshotsFolder: "e2e/dist/screenshots",
videosFolder: 'e2e/dist/videos',
screenshotsFolder: 'e2e/dist/screenshots'
}
});
5 changes: 2 additions & 3 deletions e2e/fixtures/example.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"name": "Using fixtures to represent data",
"email": "[email protected]"
"name": "Using fixtures to represent data",
"email": "[email protected]"
}

11 changes: 4 additions & 7 deletions e2e/src/app.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@ describe('My First Test', () => {
const url = 'http://localhost:4201';
it('Check the config file', () => {
cy.visit('/');
cy.request('GET', `${url}/config/config.json`).then(
(response) => {
expect(response.body).to.have.property('title', 'IGO'); // true
expect(response.body).to.have.property('theme', 'blue-theme'); // true
}
);
cy.request('GET', `${url}/config/config.json`).then((response) => {
expect(response.body).to.have.property('title', 'IGO'); // true
expect(response.body).to.have.property('theme', 'blue-theme'); // true
});
});

});
10 changes: 5 additions & 5 deletions e2e/support/component-index.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<title>Components App</title>
</head>
<body>
<div data-cy-root></div>
</body>
</html>
</html>
6 changes: 1 addition & 5 deletions e2e/tsconfig.e2e.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
"outDir": "../out-tsc/e2e",
"module": "commonjs",
"target": "es2018",
"types":[
"jasmine",
"jasminewd2",
"node"
]
"types": ["jasmine", "jasminewd2", "node"]
}
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"build.coverage": "ng test --code-coverage --watch=false",
"lint": "ng lint",
"lint.fix": "ng lint --fix",
"format": "prettier --write ./src/**/*.{ts,js,html,scss,css,json}",
"format.check": "prettier src scripts e2e --check --config .prettierrc",
"format": "prettier --write e2e scripts \"./src/**/*.{ts,js,html,scss,css,json}\"",
"e2e": "ng run igo2:e2e:production",
"e2e.local": "ng run igo2:e2e:local",
"test": "ng test --watch=false --browsers=ChromeHeadless",
Expand Down
1 change: 1 addition & 0 deletions scripts/src/utils/log.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/**
* Source: https://github.com/ng-packagr/ng-packagr/blob/ee4fd635a626e1ee2266b05cb572002bb09b4849/src/lib/utils/log.ts
*/

/* eslint-disable no-console */
import { colors } from './color';

Expand Down
2 changes: 1 addition & 1 deletion scripts/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true
},
"exclude": ["node_modules"],
"exclude": ["node_modules"]
}
5 changes: 4 additions & 1 deletion src/app/pages/portal/portal-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@

igo-map-browser {
button[mat-icon-button] {
background-color: mat.m2-get-color-from-palette($background, raised-button);
background-color: mat.m2-get-color-from-palette(
$background,
raised-button
);
}
}
}

0 comments on commit 0ac471e

Please sign in to comment.