Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Jan 12, 2025
1 parent 6325ab5 commit f7df56e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
3 changes: 0 additions & 3 deletions index-old.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -921,9 +921,6 @@
// */
// curl: EggHttpClient['request'];

// __(key: string, ...values: string[]): string;
// gettext(key: string, ...values: string[]): string;

// /**
// * get upload file stream
// * @example
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@eggjs/cookies": "^3.0.0",
"@eggjs/core": "^6.2.13",
"@eggjs/development": "^4.0.0",
"@eggjs/i18n": "^3.0.0",
"@eggjs/i18n": "^3.0.1",
"@eggjs/jsonp": "^3.0.0",
"@eggjs/schedule": "^5.0.2",
"@eggjs/utils": "^4.2.4",
Expand Down
5 changes: 4 additions & 1 deletion test/app/extend/context.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,10 @@ describe('test/app/extend/context.test.ts', () => {
const context = app.mockContext() as any;
context.locals = { a: 'a', b: 'b' };
context.state = { a: 'aa', c: 'cc' };
assert.deepEqual(context.state, { a: 'aa', b: 'b', c: 'cc' });
assert.equal(context.state.a, 'aa');
assert.equal(context.state.b, 'b');
assert.equal(context.state.c, 'cc');
assert.deepEqual(Object.keys(context.state), [ '__', 'gettext', 'a', 'b', 'c' ]);
assert(context.state === context.locals);
});
});
Expand Down

0 comments on commit f7df56e

Please sign in to comment.