File tree 1 file changed +5
-1
lines changed
packages/firestore/test/unit
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
1
/**
2
2
* @license
3
- * Copyright 2017 Google Inc.
3
+ * Copyright 2017 Google LLC
4
4
*
5
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
6
* you may not use this file except in compliance with the License.
@@ -29,6 +29,8 @@ var fs = require('fs');
29
29
var mkdirp = require ( 'mkdirp' ) ;
30
30
31
31
const describeSpec = require ( './specs/describe_spec' ) ;
32
+ const nodePlatform = require ( '../../src/platform_node/node_platform' ) ;
33
+ const platform = require ( '../../src/platform/platform' ) ;
32
34
33
35
/**
34
36
* Write the spec test at the given path as a JSON file.
@@ -49,6 +51,8 @@ function writeToJSON(testFile, jsonFile) {
49
51
* @param {array } args The command line arguments.
50
52
*/
51
53
function main ( args ) {
54
+ platform . PlatformSupport . setPlatform ( new nodePlatform . NodePlatform ( ) ) ;
55
+
52
56
if ( args . length !== 3 ) {
53
57
console . error ( 'usage: ./generate_spec_json.sh path/to/output' ) ;
54
58
return ;
You can’t perform that action at this time.
0 commit comments