 
         DDLog.flushLog()
 
-        let messages = reveicedValues.map { $0.message }
+        let messages = receivedValue.map { $0.message }
         XCTAssertEqual(messages, ["Error",
                                   "Warn",
                                   "Info",
                                   "Debug",
                                   "Verbose"])
 
-        let levels = reveicedValues.map { $0.flag }
+        let levels = receivedValue.map { $0.flag }
         XCTAssertEqual(levels, [.error,
                                 .warning,
                                 .info,


    func testReceivedValuesWithDDLogLevelWarning() {

        var reveicedValues = [DDLogMessage]()

        DDLog.sharedInstance.messagePublisher(with: .warning)
            .sink(receiveValue: { reveicedValues.append($0) })
            .store(in: &self.subscriptions)

        DDLogError("Error")


    func testReceivedValuesWithDDLogLevelAll() {

        var receivedValue = [DDLogMessage]()

        DDLog.sharedInstance.messagePublisher()
            .sink(receiveValue: { receivedValue.append($0) })
            .store(in: &self.subscriptions)

        DDLogError("Error")
