@environment-safe/file 0.1.0 → 0.1.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@environment-safe/file",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "main": "dist/index.mjs",
6
6
  "module": "src/index.mjs",
@@ -76,7 +76,7 @@
76
76
  "@environment-safe/chai": "^0.1.0",
77
77
  "@environment-safe/commonjs-builder": "^0.0.3",
78
78
  "@environment-safe/jsdoc-builder": "^0.0.2",
79
- "@open-automaton/moka": "^0.4.0",
79
+ "@open-automaton/moka": "^0.4.1",
80
80
  "babel-plugin-search-and-replace": "^1.1.1",
81
81
  "babel-plugin-transform-import-meta": "^2.2.0",
82
82
  "chai": "^4.3.7",
package/src/index.mjs CHANGED
@@ -207,8 +207,8 @@ export class Download{
207
207
  this.promise = null;
208
208
  }
209
209
  async observe(download){
210
- const text = await download.text();
211
- this.flushPromise(text);
210
+ const result = await download;
211
+ this.flushPromise(result);
212
212
  }
213
213
  }
214
214
 
package/test/test.html CHANGED
@@ -435,7 +435,6 @@
435
435
 
436
436
  </head>
437
437
  <body>
438
- <input id="dummy-button" type="button" value="Add to favorites" >
439
438
 
440
439
  <div id="mocha"></div>
441
440
  <script type=module>
package/test/test.mjs CHANGED
@@ -89,7 +89,8 @@ describe('@environment-safe/file', ()=>{
89
89
  file.body('foo!');
90
90
  const anticipatedDownload = download.expect();
91
91
  await file.save();
92
- const downloadedText = await anticipatedDownload;
92
+ const result = await anticipatedDownload;
93
+ const downloadedText = await result.text();
93
94
  downloadedText.should.equal('foo!');
94
95
  });
95
96
 
File without changes
File without changes
File without changes
File without changes