Skip to content

Commit 4513f31

Browse files
PAMulliganclaude
andcommitted
fix: Fix TypeScript errors in storage.test.ts
- Change 'score' to 'overallScore' to match SEOAnalysis interface - Add missing required fields: scoreLabel, scoreDescription, totalPassed, totalFailed, timestamp Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 057dd03 commit 4513f31

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

app/src/lib/storage.test.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,11 @@ describe("saveTabAnalysis / getTabAnalysis / clearTabAnalysis", () => {
109109

110110
const sampleAnalysis: TabAnalysisState = {
111111
analysis: {
112-
score: 75,
112+
overallScore: 75,
113+
scoreLabel: "Good",
114+
scoreDescription: "Your page has good SEO",
115+
totalPassed: 10,
116+
totalFailed: 5,
113117
categories: [],
114118
pageData: {
115119
url: "https://example.com",
@@ -137,6 +141,7 @@ describe("saveTabAnalysis / getTabAnalysis / clearTabAnalysis", () => {
137141
imageFileSizes: [],
138142
},
139143
keyword: "test",
144+
timestamp: Date.now(),
140145
},
141146
settings: {
142147
keyword: "test",
@@ -206,7 +211,11 @@ describe("tab analysis with mocked chrome.storage.session", () => {
206211

207212
const sampleState: TabAnalysisState = {
208213
analysis: {
209-
score: 85,
214+
overallScore: 85,
215+
scoreLabel: "Great",
216+
scoreDescription: "Your page has great SEO",
217+
totalPassed: 12,
218+
totalFailed: 3,
210219
categories: [],
211220
pageData: {
212221
url: "https://test.com",
@@ -234,6 +243,7 @@ describe("tab analysis with mocked chrome.storage.session", () => {
234243
imageFileSizes: [],
235244
},
236245
keyword: "seo",
246+
timestamp: Date.now(),
237247
},
238248
settings: { keyword: "seo" },
239249
url: "https://test.com",

0 commit comments

Comments
 (0)