-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtest.js
More file actions
28 lines (24 loc) · 776 Bytes
/
test.js
File metadata and controls
28 lines (24 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// const request = require('supertest');
// const app = require('./server/server.js');
// describe('Serve static files', () => {
// test('Should serve static files on an intial GET request', (done) => {
// request(app).get('/').then((response) => {
// expect(response.type).toBe('text/html');
// });
// });
// });
// describe('Test Database Seeding', () => {
// test('It should send response success', (done) => {
// request(app).get('/seedDb').then((response) => {
// expect(response).toBe('success');
// });
// });
// });
import React from 'react';
import { shallow, mount, render } from 'enzyme';
test('render a label', () => {
const wrapper = shallow(
<Label>Hello Jest!</Label>
);
expect(wrapper).toMatchSnapshot();
});