Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
LukaGiorgadze committed Aug 17, 2023
1 parent f999fbf commit 1596595
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 18 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ Subsequently, the date entry follows **YYYY-MM-DD** format in accordance with th
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

---
## [v0.5.0] (2023-05-03)
- **Updated**
- Bump up sdk and dependency versions:
- sdk: >=2.18.3 <=3.1.0
- collection: ^1.18.0
- dio: ^5.3.2

## [v0.4.4] (2023-05-03)
- **Updated**
- Fix: remove unused import dart:ffi
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Add this to your package's `pubspec.yaml` file:

```yaml
dev_dependencies:
http_mock_adapter: ^0.4.4
http_mock_adapter: ^0.5.0
```
#### Install it
Expand Down
12 changes: 6 additions & 6 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
name: http_mock_adapter
description: A simple to use mocking package for Dio intended to be used in tests. It provides various types and methods to declaratively mock request-response communication.
version: 0.4.4
version: 0.5.0
homepage: https://github.com/lomsa-dev/http-mock-adapter
repository: https://github.com/lomsa-dev/http-mock-adapter
issue_tracker: https://github.com/lomsa-dev/http-mock-adapter/issues

environment:
sdk: '>=2.18.3 <3.0.0'
sdk: '>=2.18.3 <=3.1.0'

dependencies:
collection: ^1.17.1
dio: ^5.2.1
collection: ^1.18.0
dio: ^5.3.2
http_parser: ^4.0.2

dev_dependencies:
lints: '>=1.0.1'
test: ^1.24.3
lints: '>=2.1.1'
test: ^1.24.6
fake_async: ^1.3.1
22 changes: 11 additions & 11 deletions test/matchers/list_param_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@ void main() {
group('ListParamMatcher', () {
test('matches empty value correctly', () {
expect(
Matchers.listParam(ListParam<String>(
Matchers.listParam(const ListParam<String>(
[],
ListFormat.pipes,
)).matches(ListParam<String>(
)).matches(const ListParam<String>(
[],
ListFormat.pipes,
)),
true,
);
expect(
Matchers.listParam(ListParam<String>(
Matchers.listParam(const ListParam<String>(
[],
ListFormat.pipes,
)).matches(ListParam<String>(
)).matches(const ListParam<String>(
[],
ListFormat.csv,
)),
Expand All @@ -29,30 +29,30 @@ void main() {

test('matches value correctly', () {
expect(
Matchers.listParam(ListParam<String>(
Matchers.listParam(const ListParam<String>(
['foo', 'bar'],
ListFormat.pipes,
)).matches(ListParam<String>(
)).matches(const ListParam<String>(
['foo', 'bar'],
ListFormat.pipes,
)),
true,
);
expect(
Matchers.listParam(ListParam<String>(
Matchers.listParam(const ListParam<String>(
['foo', 'bar'],
ListFormat.pipes,
)).matches(ListParam<String>(
)).matches(const ListParam<String>(
['foo', 'baz'],
ListFormat.pipes,
)),
false,
);
expect(
Matchers.listParam(ListParam<String>(
Matchers.listParam(const ListParam<String>(
['foo', 'bar'],
ListFormat.pipes,
)).matches(ListParam<int>(
)).matches(const ListParam<int>(
[1, 2],
ListFormat.pipes,
)),
Expand All @@ -61,7 +61,7 @@ void main() {
});

test('converts to string as defined', () {
final listParam = ListParam<String>(
const listParam = ListParam<String>(
[],
ListFormat.pipes,
);
Expand Down

0 comments on commit 1596595

Please sign in to comment.