()
| 153 | } |
| 154 | |
| 155 | function generateSeedData() { |
| 156 | const userNames = [ |
| 157 | "tham", |
| 158 | "Alana", |
| 159 | "Brandon", |
| 160 | "Charlotte", |
| 161 | "Damien", |
| 162 | "Etta", |
| 163 | "Freddie", |
| 164 | "Genevieve", |
| 165 | "Hank", |
| 166 | "Isabel", |
| 167 | "Janette", |
| 168 | ]; |
| 169 | const videoNames = ["happy_dog", "groovin", "jump", "lake", "pool"]; |
| 170 | const captions = [ |
| 171 | "This video is so good", |
| 172 | "I can't believe I caught this!", |
| 173 | "Really something else", |
| 174 | "LOL I'm totally like this", |
| 175 | "Hmm... I don't think this is real", |
| 176 | ]; |
| 177 | const tags = [ |
| 178 | "cat", |
| 179 | "dog", |
| 180 | "peace", |
| 181 | "dance", |
| 182 | "swim", |
| 183 | "bounce", |
| 184 | "water", |
| 185 | "crazy", |
| 186 | ]; |
| 187 | |
| 188 | const profiles = userNames.map((name, index) => { |
| 189 | const otherUsers = [...userNames]; |
| 190 | otherUsers.splice(index, 1); |
| 191 | |
| 192 | return { |
| 193 | userName: name, |
| 194 | following: multiSample(otherUsers), |
| 195 | }; |
| 196 | }); |
| 197 | |
| 198 | const videos: Video[] = []; |
| 199 | videos.push(createVideo(userNames, videoNames, captions, tags)); |
| 200 | |
| 201 | return { profiles, videos }; |
| 202 | } |
| 203 | |
| 204 | function createVideo( |
| 205 | userNames: string[], |
no test coverage detected