Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Dec 13, 2024
1 parent ade80c7 commit 91272fb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions test/types/PipelineStage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,10 +319,10 @@ const setWindowFields5: PipelineStage = {
sortBy: { score: 1 },
output: {
minScores: {
$firstN: { input: '$score', n: 3 },
$firstN: { input: '$score', n: 3 }
},
maxScores: {
$lastN: { input: '$score', n: 3 },
$lastN: { input: '$score', n: 3 }
}
}
}
Expand Down Expand Up @@ -454,9 +454,9 @@ const group7: PipelineStage = {
}
},
maxScores: { $maxN: { input: '$score', n: 3 } },
minScores: { $minN: { input: '$score', n: 3 } },
minScores: { $minN: { input: '$score', n: 3 } }
}
}
};

const stages1: PipelineStage[] = [
// First Stage
Expand Down
20 changes: 10 additions & 10 deletions test/types/expressions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,43 +84,43 @@ const bottom: Expression.Bottom = {
output: ['$playerId', '$score'],
sortBy: { score: 1 }
}
}
};

const bottomN: Expression.BottomN = {
$bottomN: {
output: ['$playerId', '$score'],
sortBy: { score: 1 },
n: 3
}
}
};

const firstN: Expression.FirstN = {
$firstN: {
input: '$score',
n: 3,
n: 3
}
}
};

const lastN: Expression.LastN = {
$lastN: {
input: '$score',
n: 3,
n: 3
}
}
};

const maxN: Expression.MaxN = {
$maxN: {
input: '$score',
n: 3,
n: 3
}
}
};

const minN: Expression.MinN = {
$minN: {
input: '$score',
n: 3,
n: 3
}
}
};

const top: Expression.Top = {
$top: {
Expand Down

0 comments on commit 91272fb

Please sign in to comment.