Skip to content
This repository was archived by the owner on Jun 24, 2024. It is now read-only.

Commit c769091

Browse files
committed
change snapshots to pass on node 13
1 parent 83fccb3 commit c769091

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

test/__snapshots__/main-optimistic.test.js.snap

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,10 @@ exports[`publishing and bundling js feeds publish assets with rebundle disabled
6767
`;
6868

6969
exports[`publishing and bundling js feeds publish assets with rebundle disabled 2`] = `
70-
SinkMem {
71-
"_events": Object {},
72-
"_eventsCount": 0,
73-
"_maxListeners": undefined,
74-
"db": Object {
75-
"7e0df1c7f101f2c102fa132a939eedc09b131c8bd29dd6a4b9c1aeed43aba75f.js": "(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c=\\"function\\"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error(\\"Cannot find module '\\"+i+\\"'\\");throw a.code=\\"MODULE_NOT_FOUND\\",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u=\\"function\\"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({},{},[]);
70+
Object {
71+
"7e0df1c7f101f2c102fa132a939eedc09b131c8bd29dd6a4b9c1aeed43aba75f.js": "(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c=\\"function\\"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error(\\"Cannot find module '\\"+i+\\"'\\");throw a.code=\\"MODULE_NOT_FOUND\\",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u=\\"function\\"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({},{},[]);
7672
",
77-
"7e0df1c7f101f2c102fa132a939eedc09b131c8bd29dd6a4b9c1aeed43aba75f.json": "[{\\"deps\\":{},\\"file\\":\\"my-module-1/main.js\\",\\"id\\":\\"1d32a8e1c6cf6e5885241f3ea5fee583560b2dfde38b21ec3f9781c91d58f42e\\",\\"name\\":\\"my-module-1\\",\\"source\\":\\"const i = 1;\\",\\"version\\":\\"1.0.1\\"}]",
78-
},
79-
"domain": null,
80-
"name": "asset-pipe-sink-mem",
73+
"7e0df1c7f101f2c102fa132a939eedc09b131c8bd29dd6a4b9c1aeed43aba75f.json": "[{\\"deps\\":{},\\"file\\":\\"my-module-1/main.js\\",\\"id\\":\\"1d32a8e1c6cf6e5885241f3ea5fee583560b2dfde38b21ec3f9781c91d58f42e\\",\\"name\\":\\"my-module-1\\",\\"source\\":\\"const i = 1;\\",\\"version\\":\\"1.0.1\\"}]",
8174
}
8275
`;
8376

test/main-optimistic.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ describe('publishing and bundling js feeds', () => {
316316
const { text } = await get(`/feed/${id}.js`);
317317
expect(text).toMatchSnapshot();
318318
sink.domain = null;
319-
expect(sink).toMatchSnapshot();
319+
expect(sink.db).toMatchSnapshot();
320320
await server.close();
321321
});
322322

0 commit comments

Comments
 (0)