This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'); | |
var app = express(); | |
function sayHello(req, res) { | |
res.send(200, 'Hello!'); | |
res.end(); | |
} | |
// all environments | |
app.set('port', process.env.PORT || 3000); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('A function',function(){ | |
it('extracts the simmetric difference of two arrays of integers',function(){ | |
expect(diff([1,2,3], [4,5,6])).toEqual([1,2,3,4,5,6]); | |
expect(diff([1,2,3], [1,2,3])).toEqual([]); | |
expect(diff([1], [])).toEqual([1]); | |
expect(diff([1], [2])).toEqual([1,2]); | |
expect(diff([1,2,3], [1,2,3,4])).toEqual([4]); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('A function',function(){ | |
it('extracts the simmetric difference of two arrays of integers',function(){ | |
expect(diff([1,2,3], [4,5,6])).toEqual([1,2,3,4,5,6]); | |
expect(diff([1,2,3], [1,2,3])).toEqual([]); | |
expect(diff([1], [])).toEqual([1]); | |
expect(diff([1], [2])).toEqual([1,2]); | |
expect(diff([1,2,3], [1,2,3,4])).toEqual([4]); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is the code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is the code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Entity | |
public class Employee { | |
@Id | |
@GeneratedValue | |
private Long id; | |
@JsonView(SummaryView.class) | |
private String name; |