Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(docs): correct createTablePartitioned sample argument (#701)
* fix(docs): correct createTablePartitioned sample argument

* Update tables.test.js
  • Loading branch information
stephenplusplus committed May 15, 2020
1 parent 0ec8052 commit 9a7520e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion samples/createTablePartitioned.js
Expand Up @@ -36,7 +36,7 @@ function main(datasetId = 'my_dataset', tableId = 'my_table') {
location: 'US',
timePartitioning: {
type: 'DAY',
expirationMS: '7776000000',
expirationMs: '7776000000',
field: 'date',
},
};
Expand Down
3 changes: 2 additions & 1 deletion samples/test/tables.test.js
Expand Up @@ -110,7 +110,8 @@ describe('Tables', () => {
output,
`Table ${partitionedTableId} created with partitioning:`
);
assert.include(output, "{ type: 'DAY', field: 'date' }");
assert.include(output, "type: 'DAY'");
assert.include(output, "field: 'date'");
const [exists] = await bigquery
.dataset(datasetId)
.table(partitionedTableId)
Expand Down

0 comments on commit 9a7520e

Please sign in to comment.