Skip to content

Commit 0cb5bb3

Browse files
committed
Merge branch 'dev' of https://github.com/open-source-labs/Swell into dev
2 parents 6a5db93 + 8ebb823 commit 0cb5bb3

File tree

8 files changed

+76
-57
lines changed

8 files changed

+76
-57
lines changed

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019 Swell
3+
Copyright (c) 2018 Swell
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ Swell is currently available for OS X, Linux and Windows.
2020
## Highlights
2121
Swell is a one-stop shop for sending and monitoring your API requests
2222

23-
* Send and monitor requests over HTTP2 (including SSEs), WebSockets, and GraphQL
23+
* Send and monitor streams over HTTP2 (including SSEs) and WebSockets
24+
* Create GraphQL queries, mutations, and subscriptions
2425
* Support for up to six concurrent connections
2526
* View request/response timing information in an interactive chart
2627
* Save requests in "collections" of multiple requests
27-
* Minimize and maximize requests
28-
* Native OS/X app
28+
* Import and export "collections" for sharing
2929

3030
## Supported Technologies
3131
* *HTTP2*: Swell supports full HTTP2 multiplexing of requests and responses. HTTP requests to the same host will be sent over the same connection. Swell will attempt to initiate an HTTP2 connection for all HTTPS requests by default, but will revert to HTTP1.1 for legacy servers.
@@ -52,18 +52,17 @@ Swell is a one-stop shop for sending and monitoring your API requests
5252
style="float: left; margin-right: 10px; margin-bottom : 30px; margin-top : 10px; border: 1px solid black;" /></kbd>
5353

5454

55-
* *Minimize/Expand*: Swell allows you to minimize and expand your requests, making it easy to manage everything at once.
56-
<kbd><img src="./ReadMeGifs/Swell_API_Minimize_Expand.gif"
55+
* *Import/Export Collections*: Swell allows you to import and export collections, making it easy to share collections with your team.
56+
<kbd><img src="./ReadMeGifs/Swell_API_ImportExportCol.gif"
5757
style="float: left; margin-right: 10px; margin-bottom : 30px; margin-top : 10px; border: 1px solid black;" /></kbd>
5858

5959

6060
## Built With
6161
* Electron
6262
* React
6363
* Redux
64-
* Express
65-
* Apollo
66-
* React-Modal
64+
* Apollo Client
65+
* Websockets
6766
* IndexedDB
6867
* Chart.js
6968

@@ -78,6 +77,10 @@ Swell is a one-stop shop for sending and monitoring your API requests
7877
* **Abby Chao** - [abbychao](https://github.com/abbychao)
7978
* **Amanda Flink** - [aflinky](https://github.com/aflinky)
8079
* **Kajol Thapa** - [kajolthapa](https://github.com/kajolthapa)
80+
* **Anthony Toreson** - [atoreson](https://github.com/atoreson)
81+
* **Billy Tran** - [btctrl](https://github.com/btctrl)
82+
* **Paul Rhee** - [prheee](https://github.com/prheee)
83+
* **Sam Parsons** - [sam-parsons](https://github.com/sam-parsons)
8184

8285
## License
8386

11 MB
Loading
-3.04 MB
Binary file not shown.

__tests__/businessReducer.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ describe('Business reducer', () => {
1111
collections: [],
1212
warningMessage: "",
1313
newRequestFields: {
14-
method: 'GET',
1514
protocol: '',
1615
url: 'http://',
16+
method: 'GET',
1717
graphQL: false
1818
},
1919
newRequestHeaders: {
@@ -26,11 +26,14 @@ describe('Business reducer', () => {
2626
},
2727
newRequestBody: {
2828
bodyContent: '',
29+
bodyVariables: '',
2930
bodyType: 'none',
3031
rawType: 'Text (text/plain)',
3132
JSONFormatted: true,
32-
bodyVariables: ''
3333
},
34+
newRequestSSE: {
35+
isSSE: false
36+
}
3437
};
3538
})
3639

__tests__/responseTests.js

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -82,37 +82,49 @@ describe('ResponseEventsDisplay', () => {
8282
describe('ResponseSubscriptionDisplay', () => {
8383
let props;
8484
let wrapper;
85-
const testURL = 'https://swell-test-graphql.herokuapp.com';
85+
const testURL = 'ws://localhost:4000/';
8686
beforeAll(() => {
8787
props = {
8888
content: {
8989
url: testURL,
90-
protocol: 'https://',
90+
protocol: 'ws://',
9191
connection: 'open',
9292
request: {
93-
body: `subscription {
94-
newLink {
93+
body: `subscription MessageSentSubscription {
94+
messageSent {
9595
id
96-
url
97-
description
98-
postedBy {
99-
id
100-
name
101-
email
102-
}
96+
from
97+
message
10398
}
10499
}`,
100+
bodyVariables: '',
105101
},
106102
response: {
107103
events: [],
108104
}
109105
},
110106
reqResUpdate: jest.fn(),
111107
};
112-
wrapper = renderer.create(<ResponseSubscriptionDisplay {...props} />);
108+
wrapper = shallow(<ResponseSubscriptionDisplay {...props}/>)
113109

114110
});
115-
xit('should initialize as listening', () => {
116-
expect(wrapper).toMatchSnapshot();
111+
it('should initialize as listening', () => {
112+
expect(wrapper.text()).toEqual('');
113+
});
114+
115+
it('should have one event displayed', () => {
116+
117+
// reassign props with one event
118+
props.content.response.event =
119+
{
120+
"messageSent": {
121+
"id": 34,
122+
"from": "sam",
123+
"message": "rock and roll",
124+
"__typename": "Chat"
125+
}
126+
}
127+
// expect one json response to be found
128+
expect(wrapper.find('div.json-response')).toHaveLength(1);
117129
});
118130
});

package-lock.json

Lines changed: 11 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Swell",
3-
"version": "0.2.1",
3+
"version": "0.3.0",
44
"description": "Swell",
55
"main": "main.js",
66
"repository": "https://github.com/open-source-labs/Swell",
@@ -61,7 +61,27 @@
6161
"name": "Amanda Flink",
6262
"email": "[email protected]",
6363
"url": "https://github.com/aflinky"
64-
}
64+
},
65+
{
66+
"name": "Anthony Toreson",
67+
"email": "[email protected]",
68+
"url": "https://github.com/atoreson"
69+
},
70+
{
71+
"name": "Billy Tran",
72+
"email": "[email protected]",
73+
"url": "https://github.com/btctrl"
74+
},
75+
{
76+
"name": "Paul Rhee",
77+
"email": "[email protected]",
78+
"url": "https://github.com/prheee"
79+
},
80+
{
81+
"name": "Sam Parsons",
82+
"email": "[email protected]",
83+
"url": "https://github.com/sam-parsons"
84+
},
6585
],
6686
"build": {
6787
"productName": "Swell",

0 commit comments

Comments
 (0)