Skip to content

Commit 7a13af9

Browse files
committed
Call PlatformSupport.setPlatform() in generate_spec_json.js.
1 parent 74b06f5 commit 7a13af9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/firestore/test/unit/generate_spec_json.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ var fs = require('fs');
2929
var mkdirp = require('mkdirp');
3030

3131
const describeSpec = require('./specs/describe_spec');
32+
const nodePlatform = require('../../src/platform_node/node_platform');
33+
const platform = require('../../src/platform/platform');
3234

3335
/**
3436
* Write the spec test at the given path as a JSON file.
@@ -49,6 +51,8 @@ function writeToJSON(testFile, jsonFile) {
4951
* @param {array} args The command line arguments.
5052
*/
5153
function main(args) {
54+
platform.PlatformSupport.setPlatform(new nodePlatform.NodePlatform());
55+
5256
if (args.length !== 3) {
5357
console.error('usage: ./generate_spec_json.sh path/to/output');
5458
return;

0 commit comments

Comments
 (0)