Skip to content

Commit eb0d9ed

Browse files
committed
Fix flakey spec
1 parent 8705a7d commit eb0d9ed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+1807
-2095
lines changed

Diff for: .github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
node: ["10", "12", "14"]
13+
node: ['10', '12', '14']
1414
name: Node ${{ matrix.node }} Test
1515
steps:
1616
- name: Check out code

Diff for: .prettierrc.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
{}
1+
{
2+
"singleQuote": true,
3+
"trailingComma": "none"
4+
}

Diff for: README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ After installing the package, you'll have to configure it with your API key whic
3535

3636
```javascript
3737
// ES6+
38-
import Patch from "@patch-technology/patch";
39-
const patch = Patch("key_test_1234");
38+
import Patch from '@patch-technology/patch';
39+
const patch = Patch('key_test_1234');
4040

4141
// ES5
42-
var patch = require("@patch-technology/patch")("key_test_1234");
42+
var patch = require('@patch-technology/patch')('key_test_1234');
4343
```
4444

4545
### Orders
@@ -86,7 +86,7 @@ const mass = 1000000; // Pass in the mass in grams (i.e. 1 metric tonne)
8686
patch.estimates.createMassEstimate({ mass_g: mass });
8787

8888
// Retrieve an estimate
89-
const estimateId = "est_test_1234";
89+
const estimateId = 'est_test_1234';
9090
patch.estimates.retrieveEstimate(estimate_id);
9191

9292
// Retrieve a list of estimates
@@ -104,7 +104,7 @@ Projects are the ways Patch takes CO2 out of the air. They can represent refores
104104

105105
```javascript
106106
// Retrieve a project
107-
const project_id = "pro_test_1234"; // Pass in the project's ID
107+
const project_id = 'pro_test_1234'; // Pass in the project's ID
108108
patch.projects.retrieveProject(project_id);
109109

110110
// Retrieve a list of projects
@@ -122,15 +122,15 @@ Preferences are how you route your orders in Patch. If you don't have a preferen
122122

123123
```javascript
124124
// Create a preference
125-
const projectId = "pro_test_1234"; // Pass in the project_id for your preference
125+
const projectId = 'pro_test_1234'; // Pass in the project_id for your preference
126126
patch.preferences.create_preference((project_id: projectId));
127127

128128
// Retrieve a preference
129-
const preferenceId = "pre_test_1234"; // Pass in the preferences's id
129+
const preferenceId = 'pre_test_1234'; // Pass in the preferences's id
130130
patch.preferences.retrieve_preference(preferenceId);
131131

132132
// Delete a preference
133-
const preferenceId = "pre_test_1234"; // Pass in the preferences's id
133+
const preferenceId = 'pre_test_1234'; // Pass in the preferences's id
134134
patch.preferences.delete_preference(preferenceId);
135135

136136
// Retrieve a list of preferences

0 commit comments

Comments
 (0)