Skip to content

Commit

Permalink
Updated GitHub actions file
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei15193 committed May 5, 2024
1 parent fa5a987 commit b9f1f13
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 24 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20

- run: npm install
- run: npm run build
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,15 @@ describe('ObserableCollection.toReversed', (): void => {
testBlankMutatingOperation<number>({
initialState: [],

applyOperation: {
applyArrayOperation: array => array.slice().reverse(),
applyCollectionOperation: collection => collection.toReversed()
}
applyOperation: collection => collection.toReversed()
});
});

it('reversing a collection returns an array containing the same items in reverse order', (): void => {
testBlankMutatingOperation<number>({
initialState: [1, 2, 3],

applyOperation: {
applyArrayOperation: array => array.slice().reverse(),
applyCollectionOperation: collection => collection.toReversed()
}
applyOperation: collection => collection.toReversed()
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,23 @@ describe('ObserableCollection.toSorted', (): void => {
testBlankMutatingOperation<number>({
initialState: [],

applyOperation: {
applyArrayOperation: array => array.slice().sort(),
applyCollectionOperation: collection => collection.toSorted()
}
applyOperation: collection => collection.toSorted()
});
});

it('sorting a collection returns an array containing the same items in sort order', (): void => {
testBlankMutatingOperation<number>({
initialState: [1, undefined, 2, 3, -1, undefined, 3, 100, null, 22, 11, 200, -100],

applyOperation: {
applyArrayOperation: array => array.slice().sort(),
applyCollectionOperation: collection => collection.toSorted()
}
applyOperation: collection => collection.toSorted()
});
});

it('sorting a collection with a compare callback returns an array containing the same items in sort order', (): void => {
testBlankMutatingOperation<number>({
initialState: [1, undefined, 2, 3],

applyOperation: {
applyArrayOperation: array => array.slice().sort((left, right) => left - right),
applyCollectionOperation: collection => collection.toSorted((left, right) => left - right)
}
applyOperation: collection => collection.toSorted((left, right) => left - right)
});
});

Expand Down

0 comments on commit b9f1f13

Please sign in to comment.