-
Notifications
You must be signed in to change notification settings - Fork 3
/
testData.js
176 lines (135 loc) · 3.45 KB
/
testData.js
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
/**
* Created by malcolm on 2/11/16.
*
* This is messy but will insert our questions into the DB
*/
var models = require('./models');
models.sequelize.query('TRUNCATE answers, interviews, questions, roles, users,"interviewQuestion",tags,positions CASCADE;')
//FRONT END DEVELOPER SAMPLE QUESTIONS
models.interview.create({
label : 'Front-End Developer',
interviewee : 'Ben Byrd'
});
models.interview.create({
label : 'Back-end Developer',
interviewee : 'Jack Meagher'
});
models.interview.create({
label : 'Data Scientist',
interviewee : 'Nick DeSisto'
});
models.interview.create({
label : 'Janitorial Technician',
interviewee : 'James Shockley'
});
models.interview.create({
label : 'Sith Lord',
interviewee : 'Sebastian van Delden'
});
models.question.create({
question_text : 'Have you worked with javascript libraries?',
difficulty : 1
});
models.question.create({
question_text : 'Explain the difference between the JavaScript call and apply functions.',
difficulty : 1
});
models.question.create({
question_text : 'Define the term closure and give an example of it in JavaScript.',
difficulty : 2
});
models.question.create({
question_text : 'Identify two ways in which you can clear a floated element with HTML/CSS.',
difficulty : 2
});
models.question.create({
question_text : 'What is the difference between event bubbling and event capture?',
difficulty : 2
});
//BACK END DEVELOPER SAMPLE QUESTIONS
models.question.create({
question_text : 'Talk about the 3 worst defects of your preferred language.',
difficulty : 1
});
models.question.create({
question_text : 'Why are first-party cookies and third-party cookies treated so differently?',
difficulty : 1
});
models.question.create({
question_text : 'How would you manage the migration of a project from MySQL to PostgreSQL?',
difficulty : 2
});
models.question.create({
question_text : 'How would you backup and restore data using mysqldump from the command line?',
difficulty : 2
});
models.question.create({
question_text : 'How you contribute to the open source community (Github, Bitbucket, IRC, forums)?',
difficulty : 1
});
/* USERS */
models.user.create({
username: 'byrdman419',
first_name: 'Ben',
last_name: 'Byrd',
//pw_hash: 'geocent'
});
models.user.create({
username: 'jackalope',
first_name: 'Jack',
last_name: 'Meagher',
//pw_hash: 'geocent'
});
models.user.create({
username: 'nickd',
first_name: 'Nick',
last_name: 'DeSisto',
//pw_hash: 'geocent'
});
models.user.create({
username: 'PusillanimousPony22',
first_name: 'James',
last_name: 'Shockley',
//pw_hash: 'geocent'
});
models.user.create({
username: 'BigBoss123',
first_name: 'Sebastian',
last_name: 'van delden',
//pw_hash: 'geocent'
});
models.tag.create({
label : 'Java'
});
models.tag.create({
label : 'Front-end'
});
models.tag.create({
label : 'Javascript'
});
models.tag.create({
label : 'Python'
});
models.tag.create({
label : 'Math'
});
models.position.create({
title : 'CEO'
});
models.position.create({
title : 'Junior Software Engineer'
});
models.position.create({
title : 'Senior Software Engineer'
});
models.position.create({
title : 'QA Engineer'
});
models.position.create({
title : 'Janitor'
});
//
//models.interviewQuestion.create({
// interviewId : 3,
// questionId : 41
//});