File tree Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ module.exports = {
1313 'Atomics' : 'readonly' ,
1414 'SharedArrayBuffer' : 'readonly' ,
1515 } ,
16- 'parserOptions' : {
16+ 'parserOptions' : {
17+ 'sourceType' : 'module' ,
1718 'ecmaVersion' : 2018 ,
1819 } ,
1920 'rules' : {
Original file line number Diff line number Diff line change 1+ {
2+ "endPoint" : " /weatherapi" ,
3+ "specialProperty" : " password"
4+ }
Original file line number Diff line number Diff line change 1+ // notice the usage of ES6 syntax. alternative import is below
2+ import testData from '../data/testData' ;
3+ // const testData = require('../data/testData');
4+
5+
6+ describe ( 'Utilities' , function ( ) {
7+ it ( 'should get test data from file' , function ( ) {
8+ expect ( testData ) . toHaveProperty ( 'endPoint' ) ;
9+ expect ( testData . specialProperty ) . toBe ( 'password' ) ;
10+ } ) ;
11+ } ) ;
You can’t perform that action at this time.
0 commit comments