* chore(travis): update to mastodon v2.6.1 * check if mastodon v2.6.1 has a race condition * apparently in 2.6.1 direct messages no longer appear in home timeline * Revert "check if mastodon v2.6.1 has a race condition" This reverts commit dde8ef8be58eda0563170e6b73165fdcbea54f6b. * try to fix tests * fix more tests
		
			
				
	
	
		
			87 lines
		
	
	
	
		
			2.6 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			87 lines
		
	
	
	
		
			2.6 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
import { times } from './utils'
 | 
						|
 | 
						|
export const homeTimeline = [
 | 
						|
  { content: 'pinned toot 1' },
 | 
						|
  { content: 'notification of unlisted message' },
 | 
						|
  { content: 'notification of followers-only message' },
 | 
						|
  { content: 'this is unlisted' },
 | 
						|
  { content: 'this is followers-only' },
 | 
						|
  { spoiler: 'kitten CW' },
 | 
						|
  { content: 'secret video' },
 | 
						|
  { content: "here's a video" },
 | 
						|
  { spoiler: 'CW' },
 | 
						|
  { content: "here's a secret animated kitten gif" },
 | 
						|
  { content: "here's an animated kitten gif" },
 | 
						|
  { content: "here's 2 kitten photos" },
 | 
						|
  { content: "here's a secret kitten" },
 | 
						|
  { content: "here's a kitten" },
 | 
						|
  { content: 'hello admin' },
 | 
						|
  { content: 'hello foobar' },
 | 
						|
  { content: 'hello world' }
 | 
						|
].concat(times(30, i => ({ content: (30 - i).toString() })))
 | 
						|
 | 
						|
export const localTimeline = [
 | 
						|
  { spoiler: 'kitten CW' },
 | 
						|
  { content: 'secret video' },
 | 
						|
  { content: "here's a video" },
 | 
						|
  { spoiler: 'CW' },
 | 
						|
  { content: "here's a secret animated kitten gif" },
 | 
						|
  { content: "here's an animated kitten gif" },
 | 
						|
  { content: "here's 2 kitten photos" },
 | 
						|
  { content: "here's a secret kitten" },
 | 
						|
  { content: "here's a kitten" },
 | 
						|
  { content: 'hello world' }
 | 
						|
].concat(times(30, i => ({ content: (30 - i).toString() })))
 | 
						|
 | 
						|
export const notifications = [
 | 
						|
  { favoritedBy: 'admin' },
 | 
						|
  { rebloggedBy: 'admin' },
 | 
						|
  { content: 'notification of unlisted message' },
 | 
						|
  { content: 'notification of followers-only message' },
 | 
						|
  { content: 'notification of direct message' },
 | 
						|
  { followedBy: 'quux' },
 | 
						|
  { content: 'hello foobar' },
 | 
						|
  { followedBy: 'admin' }
 | 
						|
]
 | 
						|
 | 
						|
export const favorites = [
 | 
						|
  { content: 'notification of direct message' },
 | 
						|
  { content: 'notification of followers-only message' },
 | 
						|
  { content: 'notification of unlisted message' },
 | 
						|
  { content: 'pinned toot 1' }
 | 
						|
]
 | 
						|
 | 
						|
export const quuxStatuses = [
 | 
						|
  { content: 'pinned toot 2' },
 | 
						|
  { content: 'pinned toot 1' }
 | 
						|
].concat(times(25, i => ({ content: `unlisted thread ${25 - i}` })))
 | 
						|
 | 
						|
export const quuxThread = times(25, i => ({ content: `unlisted thread ${i + 1}` }))
 | 
						|
 | 
						|
export const bazThreadRelativeTo2B2 = [
 | 
						|
  { content: 'thread 1' },
 | 
						|
  { content: 'thread 2' },
 | 
						|
  { content: 'thread 2b' },
 | 
						|
  { content: 'thread 2b2' },
 | 
						|
  { content: 'thread 2b2a' }
 | 
						|
]
 | 
						|
 | 
						|
export const bazThreadRelativeTo2b = [
 | 
						|
  { content: 'thread 1' },
 | 
						|
  { content: 'thread 2' },
 | 
						|
  { content: 'thread 2b' },
 | 
						|
  { content: 'thread 2b1' },
 | 
						|
  { content: 'thread 2b2' },
 | 
						|
  { content: 'thread 2b2a' }
 | 
						|
]
 | 
						|
 | 
						|
export const bazThreadRelativeTo2 = [
 | 
						|
  { content: 'thread 1' },
 | 
						|
  { content: 'thread 2' },
 | 
						|
  { content: 'thread 2a' },
 | 
						|
  { content: 'thread 2b' },
 | 
						|
  { content: 'thread 2b1' },
 | 
						|
  { content: 'thread 2b2' },
 | 
						|
  { content: 'thread 2b2a' },
 | 
						|
  { content: 'thread 2c' }
 | 
						|
]
 |