Skip to content

Commit

Permalink
Run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Oct 26, 2020
1 parent 506e1ad commit 19a69ba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
9 changes: 5 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ refreshing the page will be sufficient.
4. Run the tests before submitting a PR: `npx yarn test`
5. Run specific tests: `npx yarn test --testNamePattern "when some fields"`

# Building the Grafana Map Panel
## Releasing the Grafana Map Panel
1. Install packages: `npx yarn install`
2. Build into `dist/`, lint and run tests: `npx yarn build`
3. Build plugin on CI: `npx grafana-toolkit plugin:ci-build`
4. Create a zip package: `npx grafana-toolkit plugin:ci-package`
2. Run prettier: `npx grafana-toolkit plugin:dev`
3. Build into `dist/`, lint and run tests: `npx yarn build`
4. Build plugin on CI: `npx grafana-toolkit plugin:ci-build`
5. Create a zip package: `npx grafana-toolkit plugin:ci-package`
When this process succeeds, packages can be found within the `ci/packages/` folder.
9 changes: 2 additions & 7 deletions src/data_formatter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -458,9 +458,7 @@ describe('DataFormatter', () => {
expect(data.highestValue).toEqual(5.555);
expect(data.lowestValue).toEqual(3.333);
expect(data.valueRange).toEqual(2.2219999999999995);

});

});

describe('when data is coming from "json result" (dataframe)', () => {
Expand All @@ -472,8 +470,8 @@ describe('DataFormatter', () => {
decimals: 2,
},
series: [
{datapoints: [{ key: 'IE', name: 'Ireland', latitude: 1, longitude: 1, value: 3.333 }]},
{datapoints: [{ key: 'SE', name: 'Sweden', latitude: 2, longitude: 2, value: 5.555 }]},
{ datapoints: [{ key: 'IE', name: 'Ireland', latitude: 1, longitude: 1, value: 3.333 }] },
{ datapoints: [{ key: 'SE', name: 'Sweden', latitude: 2, longitude: 2, value: 5.555 }] },
],
};
dataFormatter = new DataFormatter(ctrl);
Expand All @@ -498,13 +496,10 @@ describe('DataFormatter', () => {
expect(data.highestValue).toEqual(5.555);
expect(data.lowestValue).toEqual(3.333);
expect(data.valueRange).toEqual(2.2219999999999995);

});

});

afterEach(() => {
formattedData = [];
});

});

0 comments on commit 19a69ba

Please sign in to comment.