Skip to content

Commit 1f16cdb

Browse files
authored
Call PlatformSupport.setPlatform() in generate_spec_json.js (#2833)
1 parent 111a4d0 commit 1f16cdb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/firestore/test/unit/generate_spec_json.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @license
3-
* Copyright 2017 Google Inc.
3+
* Copyright 2017 Google LLC
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.
@@ -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)