Skip to content

Commit ee303c5

Browse files
committed
fixup: types in files not covered by npm run check
1 parent 02281bd commit ee303c5

File tree

2 files changed

+6
-16
lines changed

2 files changed

+6
-16
lines changed

packages/build/src/barque.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ describe('Barque', function () {
333333
});
334334

335335
it('platform is not linux', function () {
336-
config.platform = 'macos';
336+
config.platform = 'darwin';
337337
try {
338338
barque = new Barque(config);
339339
} catch (e: any) {

packages/node-runtime-worker-thread/src/serializer.spec.ts

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {
66
deserializeError,
77
serializeEvaluationResult,
88
deserializeEvaluationResult,
9-
SerializedResultTypes,
109
serializeConnectOptions,
1110
deserializeConnectOptions,
1211
} from './serializer';
@@ -50,10 +49,7 @@ describe('serializer', function () {
5049
printable: new SyntaxError('Ooops!'),
5150
});
5251

53-
expect(serialized).to.have.property(
54-
'type',
55-
SerializedResultTypes.SerializedErrorResult
56-
);
52+
expect(serialized).to.have.property('type', 'SerializedErrorResult');
5753
expect(serialized).to.have.property('printable').not.instanceof(Error);
5854
expect(serialized).to.have.nested.property(
5955
'printable.name',
@@ -68,10 +64,7 @@ describe('serializer', function () {
6864
printable: function abc() {},
6965
});
7066

71-
expect(serialized).to.have.property(
72-
'type',
73-
SerializedResultTypes.InspectResult
74-
);
67+
expect(serialized).to.have.property('type', 'InspectResult');
7568
expect(serialized).to.have.property('printable', '[Function: abc]');
7669
});
7770

@@ -81,10 +74,7 @@ describe('serializer', function () {
8174
printable: { foo: 'bar' },
8275
});
8376

84-
expect(serialized).to.have.property(
85-
'type',
86-
SerializedResultTypes.SerializedShellApiResult
87-
);
77+
expect(serialized).to.have.property('type', 'SerializedShellApiResult');
8878
expect(serialized).to.have.nested.property(
8979
'printable.origType',
9080
'TotallyRealShellApiType'
@@ -100,7 +90,7 @@ describe('serializer', function () {
10090
describe('deserializeEvaluationResult', function () {
10191
it('should deserialize SerializedErrorResult', function () {
10292
const deserialized = deserializeEvaluationResult({
103-
type: SerializedResultTypes.SerializedErrorResult,
93+
type: 'SerializedErrorResult',
10494
printable: { name: 'TypeError', message: 'Uh-oh' },
10595
});
10696

@@ -117,7 +107,7 @@ describe('serializer', function () {
117107

118108
it('should deserialize SerializedShellApiResult', function () {
119109
const deserialized = deserializeEvaluationResult({
120-
type: SerializedResultTypes.SerializedShellApiResult,
110+
type: 'SerializedShellApiResult',
121111
printable: {
122112
origType: 'ShellApiResult',
123113
serializedValue: { foo: 'bar' },

0 commit comments

Comments
 (0)