@mcpher/gas-fakes 1.0.6 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -4
- package/deprec/deprec-test.js +1258 -0
- package/gasfakes.json +8 -0
- package/main.js +2 -1
- package/package.json +15 -3
- package/src/index.js +3 -2
- package/src/services/advdrive/fakeadvdrive.js +0 -122
- package/src/services/advsheets/app.js +31 -0
- package/src/services/advsheets/fakeadvsheets.js +248 -0
- package/src/services/advsheets/fakeadvsheetsspreadsheets.js +130 -0
- package/src/services/advsheets/fakeadvvalues.js +118 -0
- package/src/services/driveapp/{fakedriveiterators.js → driveiterators.js} +2 -51
- package/src/services/driveapp/fakedrivemeta.js +3 -27
- package/src/services/driveapp/fakefolderapp.js +2 -6
- package/src/services/session/fakesession.js +1 -1
- package/src/services/{sheets → spreadsheetapp}/app.js +1 -1
- package/src/services/spreadsheetapp/fakecolor.js +42 -0
- package/src/services/spreadsheetapp/fakecolorbase.js +28 -0
- package/src/services/spreadsheetapp/fakecolorbuilder.js +68 -0
- package/src/services/spreadsheetapp/fakergbcolor.js +80 -0
- package/src/services/spreadsheetapp/fakesheet.js +407 -0
- package/src/services/spreadsheetapp/fakesheetrange.js +678 -0
- package/src/services/spreadsheetapp/fakesheetrangelist.js +103 -0
- package/src/services/spreadsheetapp/fakespreadsheet.js +504 -0
- package/src/services/spreadsheetapp/fakespreadsheetapp.js +178 -0
- package/src/services/spreadsheetapp/fakethemecolor.js +42 -0
- package/src/services/spreadsheetapp/shapis.js +20 -0
- package/src/services/typedefs.js +301 -0
- package/src/services/utilities/fakeutilities.js +147 -2
- package/src/support/fileiterators.js +53 -0
- package/src/support/filesharers.js +28 -0
- package/src/support/helpers.js +16 -2
- package/src/support/nummery.js +30 -0
- package/src/support/sheetscache.js +70 -0
- package/src/support/sheetutils.js +143 -0
- package/src/support/sxapi.js +43 -0
- package/src/support/sxdrive.js +1 -41
- package/src/support/syncit.js +35 -7
- package/src/support/utils.js +110 -32
- package/togas.bash +60 -0
- package/src/services/sheets/fakesheet.js +0 -155
- package/src/services/sheets/shapis.js +0 -13
package/README.md
CHANGED
|
@@ -28,7 +28,11 @@ You don't have access to the GAS maintained cloud project, so you'll need to cre
|
|
|
28
28
|
|
|
29
29
|
### Testing
|
|
30
30
|
|
|
31
|
-
I recommend you use the test project included in the repo to make sure all is set up correctly. It uses a Fake DriveApp service to excercise Auth etc. Just change the fixtures
|
|
31
|
+
I recommend you use the test project included in the repo to make sure all is set up correctly. It uses a Fake DriveApp service to excercise Auth etc. Just change the fixtures in .env_template in your own environments, then `npm i && npm test`.
|
|
32
|
+
|
|
33
|
+
Note that I use a [unit tester](https://ramblings.mcpher.com/apps-script-test-runner-library-ported-to-node/) that runs in both GAS and Node, so the exact same tests will run in both environments. There are some example tests in the repo. Each test has been proved on both Node and GAS. There's also a shell (togas.sh) which will use clasp to push the test code to Apps Script.
|
|
34
|
+
|
|
35
|
+
Each test can be run indivually (for example `npm run testdrive`) or all with `npm test`
|
|
32
36
|
|
|
33
37
|
### Settings
|
|
34
38
|
|
|
@@ -168,13 +172,14 @@ This was a little problematic to sequence, but I wanted to make sure that any GA
|
|
|
168
172
|
|
|
169
173
|
Only a subset of methods are currently available for some of them - the rest are work in progress. My approach is to start with a little bit of each service to prove feasibility and provide a base to build on.
|
|
170
174
|
|
|
171
|
-
v1.0.
|
|
175
|
+
v1.0.7
|
|
172
176
|
|
|
173
177
|
- `DriveApp` - 50%
|
|
174
178
|
- `ScriptApp` - almost all
|
|
175
179
|
- `UrlFetchApp` - 80%
|
|
176
|
-
- `Utilities` -
|
|
177
|
-
- `Sheets` -
|
|
180
|
+
- `Utilities` - almost all
|
|
181
|
+
- `Sheets` - 25%
|
|
182
|
+
- `SpreadsheetApp` - 25%
|
|
178
183
|
- `CacheService` - 80%
|
|
179
184
|
- `PropertiesService` - 80%
|
|
180
185
|
- `Session` - almost all
|