Skip to content

Commit 4411ab1

Browse files
committed
update snapshot tests
1 parent 8ae0cac commit 4411ab1

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

test/js/samples/do-use-dataset/expected-bundle.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,12 @@ function _set(newState) {
149149
this._state = assign({}, oldState, newState);
150150
this._recompute(changed, this._state);
151151
if (this._bind) this._bind(changed, this._state);
152-
dispatchObservers(this, this._observers.pre, changed, this._state, oldState);
153-
this._fragment.p(changed, this._state);
154-
dispatchObservers(this, this._observers.post, changed, this._state, oldState);
152+
153+
if (this._fragment) {
154+
dispatchObservers(this, this._observers.pre, changed, this._state, oldState);
155+
this._fragment.p(changed, this._state);
156+
dispatchObservers(this, this._observers.post, changed, this._state, oldState);
157+
}
155158
}
156159

157160
function callAll(fns) {

test/js/samples/do-use-dataset/expected.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ function SvelteComponent(options) {
5252
}
5353

5454
assign(SvelteComponent.prototype, proto);
55-
export default SvelteComponent;
55+
export default SvelteComponent;

test/js/samples/dont-use-dataset-in-legacy/expected-bundle.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,12 @@ function _set(newState) {
153153
this._state = assign({}, oldState, newState);
154154
this._recompute(changed, this._state);
155155
if (this._bind) this._bind(changed, this._state);
156-
dispatchObservers(this, this._observers.pre, changed, this._state, oldState);
157-
this._fragment.p(changed, this._state);
158-
dispatchObservers(this, this._observers.post, changed, this._state, oldState);
156+
157+
if (this._fragment) {
158+
dispatchObservers(this, this._observers.pre, changed, this._state, oldState);
159+
this._fragment.p(changed, this._state);
160+
dispatchObservers(this, this._observers.post, changed, this._state, oldState);
161+
}
159162
}
160163

161164
function callAll(fns) {

test/js/samples/dont-use-dataset-in-legacy/expected.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ function SvelteComponent(options) {
5252
}
5353

5454
assign(SvelteComponent.prototype, proto);
55-
export default SvelteComponent;
55+
export default SvelteComponent;

0 commit comments

Comments
 (0)