Upgrade api_test deps (#2850)

* Upgrade api_test deps

* Fix cargo fmt.

* Try to trigger a new format
pull/2853/head
Dessalines 2023-05-10 16:31:37 -04:00 committed by GitHub
parent 014c0ad87f
commit d63b1ba935
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 957 additions and 1356 deletions

View File

@ -12,16 +12,16 @@
"api-test": "jest -i follow.spec.ts && jest -i src/post.spec.ts && jest -i comment.spec.ts && jest -i private_message.spec.ts && jest -i user.spec.ts && jest -i community.spec.ts" "api-test": "jest -i follow.spec.ts && jest -i src/post.spec.ts && jest -i comment.spec.ts && jest -i private_message.spec.ts && jest -i user.spec.ts && jest -i community.spec.ts"
}, },
"devDependencies": { "devDependencies": {
"@types/jest": "^26.0.23", "@types/jest": "^29.5.1",
"@typescript-eslint/eslint-plugin": "^5.21.0", "@types/node": "^20.1.2",
"@typescript-eslint/parser": "^5.21.0", "@typescript-eslint/eslint-plugin": "^5.59.5",
"eslint": "^8.25.0", "@typescript-eslint/parser": "^5.59.5",
"eslint": "^8.40.0",
"eslint-plugin-prettier": "^4.0.0", "eslint-plugin-prettier": "^4.0.0",
"jest": "^27.0.6", "jest": "^29.5.0",
"lemmy-js-client": "0.17.2-rc.11", "lemmy-js-client": "0.17.2-rc.13",
"node-fetch": "^2.6.1", "prettier": "^2.8.8",
"prettier": "^2.7.1", "ts-jest": "^29.1.0",
"ts-jest": "^27.0.3", "typescript": "^5.0.4"
"typescript": "^4.8.4"
} }
} }

File diff suppressed because it is too large Load Diff

View File

@ -14,7 +14,6 @@ impl<T> Sensitive<T> {
pub fn new(item: T) -> Self { pub fn new(item: T) -> Self {
Sensitive(item) Sensitive(item)
} }
pub fn into_inner(self) -> T { pub fn into_inner(self) -> T {
self.0 self.0
} }